3 ms·
I would create a Cocktail data structure and an instance of Monad for it. sazerac = do add ice add ryeWhisky add bitters ad
by greydius 10y ago
I would create a Cocktail data structure and an instance of Monad for it.
sazerac = do
add ice
add ryeWhisky
add bitters
add absinthe
shake
strainInto glass
add lemonGarnish
main = serve $ makeCocktail sazerac
- dllthomas 10y agoHaskell really is a pretty nice imperative language sometimes.