Skip to content

Instantly share code, notes, and snippets.

View alpacaaa's full-sized avatar
🎱
Testing in production

Marco Sampellegrini alpacaaa

🎱
Testing in production
View GitHub Profile
@alpacaaa
alpacaaa / Cart.hs
Last active May 1, 2019 21:05
How purity in Haskell makes your life easier
module Cart where
-- An Item is just a record (like an object in JS).
data Item
= Item
{ name :: String
, quantity :: Int
}