Skip to content

Instantly share code, notes, and snippets.

/Main.purs Secret

Created December 14, 2017 19:58
Show Gist options
  • Save anonymous/e05ffdd20e23845779b563f9c24a7382 to your computer and use it in GitHub Desktop.
Save anonymous/e05ffdd20e23845779b563f9c24a7382 to your computer and use it in GitHub Desktop.
Published with try.purescript.org
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