1 {-# LANGUAGE DeriveGeneric #-}
2 {-# LANGUAGE NoMonomorphismRestriction #-}
3 {-# OPTIONS_GHC -Wno-missing-signatures #-}
5 module Examples.Ex02 where
7 import Literate.Web hiding (index)
10 -- | A convenient data-type to avoid using Eithers-of-Tuples or Tuples-of-Functions.
14 deriving (Eq, Show, Generic)
16 -- | Using Generic, 'dataType' derives
17 -- from the 'Route' algebraic data-type
18 -- a function transforming Eithers-of-Tuples into a 'Route'.
26 Index -> return "INDEX"
27 About -> return "ABOUT"