Skip to content

Instantly share code, notes, and snippets.

@kkirsanov
Created December 6, 2011 11:34
Show Gist options
  • Save kkirsanov/1437882 to your computer and use it in GitHub Desktop.
Save kkirsanov/1437882 to your computer and use it in GitHub Desktop.
data Bool' = False' | True' deriving (Eq, Show, Ord)
not :: Bool' -> Bool'
not False' = True'
not True' = False'
(\/) :: Bool'->Bool'->Bool'
(\/) _ True' = True'
(\/) True' _ = True'
(\/) _ _ = False'
(/\):: Bool'->Bool'->Bool'
(/\) False' _ = False'
(/\) _ False' = False'
(/\) _ _ = True'
(-->):: Bool'->Bool'->Bool'
(-->) False' _ = True'
(-->) True' True' = True'
(-->) _ _ = False'
(<--):: Bool'->Bool'->Bool'
(<--) a b = not' $ a --> b
not' :: Bool'->Bool'
not' True' = False'
not' False'= True'
infinity :: a-> [a]
infinity x = [x] ++ infinity x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment