amusing name

This is both a partial Prelude that conflicts with the real one, and a
way to guard against the Prelude's partial functions.
This commit is contained in:
Joey Hess 2011-12-20 11:01:50 -04:00
parent f0f84dbe48
commit dc5ed8d3b6
2 changed files with 4 additions and 4 deletions

View file

@ -26,4 +26,4 @@ import Utility.Path as X
import Utility.Directory as X import Utility.Directory as X
import Utility.Monad as X import Utility.Monad as X
import Utility.BadPrelude as X import Utility.PartialPrelude as X

View file

@ -1,11 +1,11 @@
{- Some stuff from Prelude should not be used, as it tends to be a source {- Parts of the Prelude are partial functions, which are a common source of
- of bugs. - bugs.
- -
- This exports functions that conflict with the prelude, which avoids - This exports functions that conflict with the prelude, which avoids
- them being accidentially used. - them being accidentially used.
-} -}
module Utility.BadPrelude where module Utility.PartialPrelude where
{- read should be avoided, as it throws an error {- read should be avoided, as it throws an error
- Instead, use: readMaybe -} - Instead, use: readMaybe -}