Skip to content

Instantly share code, notes, and snippets.

@motokiee
Created November 9, 2015 05:00
Show Gist options
  • Save motokiee/5cc94c3ce647aa37c787 to your computer and use it in GitHub Desktop.
Save motokiee/5cc94c3ce647aa37c787 to your computer and use it in GitHub Desktop.
自動導出とか型シノニムとか #CodePiece
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