Created
January 3, 2011 19:23
-
-
Save beastaugh/763807 to your computer and use it in GitHub Desktop.
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
Prelude> :l time.hs | |
[1 of 1] Compiling Main ( time.hs, interpreted ) | |
Ok, modules loaded: Main. | |
*Main> (Time 0) == 0 | |
True |
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
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
newtype Time = Time Integer deriving (Eq, Ord, Read, Show, Num) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment