Proposal #1464: add dropPrefix to Data.List

David House dmhouse at gmail.com
Sat Jun 30 06:17:33 EDT 2007


Thomas Schilling writes:
 > It's most consistent with the existing functions.  Also, most  
 > suggested more general implementations can be built atop of that one.

Indeed, one could always write:

  embed :: Monad m => Maybe a -> m a
  embed Nothing = fail "Nothing"
  embed (Just x) = return x

-- 
-David House, dmhouse at gmail.com


More information about the Libraries mailing list