Created
January 15, 2013 19:56
-
-
Save acfoltzer/4541471 to your computer and use it in GitHub Desktop.
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
{-# LANGUAGE NoMonomorphismRestriction #-} | |
import Data.Map as Map | |
import Prelude as P | |
-- When there's a name clash, you can use the qualifier | |
mapNull = Map.null | |
listNull = P.null | |
-- When a name is unambiguous, you can just use it | |
mapMember = member | |
listMember = elem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment