diff options
author | 2011-12-20 11:01:50 -0400 | |
---|---|---|
committer | 2011-12-20 11:01:50 -0400 | |
commit | dc5ed8d3b677f3c45118f5d5a89ad528ede7b171 (patch) | |
tree | fa33333ccfbd28472a09eeacd75bf836a14c49b0 | |
parent | f0f84dbe48764b043c3373dc0e6a014b3a400b49 (diff) |
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.
-rw-r--r-- | Common.hs | 2 | ||||
-rw-r--r-- | Utility/PartialPrelude.hs (renamed from Utility/BadPrelude.hs) | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -26,4 +26,4 @@ import Utility.Path as X import Utility.Directory as X import Utility.Monad as X -import Utility.BadPrelude as X +import Utility.PartialPrelude as X diff --git a/Utility/BadPrelude.hs b/Utility/PartialPrelude.hs index 04c9d9b0b..ad857196d 100644 --- a/Utility/BadPrelude.hs +++ b/Utility/PartialPrelude.hs @@ -1,11 +1,11 @@ -{- Some stuff from Prelude should not be used, as it tends to be a source - - of bugs. +{- Parts of the Prelude are partial functions, which are a common source of + - bugs. - - This exports functions that conflict with the prelude, which avoids - them being accidentially used. -} -module Utility.BadPrelude where +module Utility.PartialPrelude where {- read should be avoided, as it throws an error - Instead, use: readMaybe -} |