Skip to content

Instantly share code, notes, and snippets.

@jhickner
Created February 19, 2013 19:54
Show Gist options
  • Save jhickner/4989288 to your computer and use it in GitHub Desktop.
Save jhickner/4989288 to your computer and use it in GitHub Desktop.
import Data.Char
strong = and . sequence conditions
where conditions = [ (>14) . length
, any isUpper
, any isLower
, any isDigit
]
{-
> strong "foo"
False
> strong "LongC0mplicatedPassw0rd"
True
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment