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:
parent
f0f84dbe48
commit
dc5ed8d3b6
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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 -}
|
Loading…
Reference in a new issue