Skip to content

Instantly share code, notes, and snippets.

@lotz84
Last active August 29, 2015 14:27
Show Gist options
  • Save lotz84/74117a6110fd48ad80da to your computer and use it in GitHub Desktop.
Save lotz84/74117a6110fd48ad80da to your computer and use it in GitHub Desktop.
import Data.Monoid
main = do
let adde :: Monoid m => m -> m
adde = mappend mempty
print $ adde "aaa"
print $ adde (Sum 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment