-
-
Save anonymous/e05ffdd20e23845779b563f9c24a7382 to your computer and use it in GitHub Desktop.
Published with try.purescript.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import TryPureScript (p, text, render) | |
import Prelude | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) | |
data Route = Home | Users String | User Int | NotFound String | |
derive instance genericRoute :: Generic Route _ | |
instance showRoute :: Show Route where | |
show = genericShow | |
main = render (p (text (show (User 8)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment