Created
November 9, 2015 05:00
-
-
Save motokiee/5cc94c3ce647aa37c787 to your computer and use it in GitHub Desktop.
自動導出とか型シノニムとか #CodePiece
This file contains hidden or 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
| import qualified Data.Map as Map | |
| data Person = Person { firstName :: String, | |
| lastName :: String, | |
| age :: Int | |
| } deriving (Eq, Show, Read) | |
| data Day = Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday deriving (Eq, Ord, Show, Read, Bounded, Enum) | |
| type AssocList k v = [(k, v)] | |
| -- type IntMap v = Map Int v | |
| type IntMap = Map.Map Int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment