expose rest of safe functions

This commit is contained in:
Stephen Diehl
2016-04-09 20:17:55 -04:00
parent 1a6ce9436f
commit 26c148510e
3 changed files with 21 additions and 7 deletions
+1
View File
@@ -62,6 +62,7 @@ library
mtl >= 2.1 && <2.3, mtl >= 2.1 && <2.3,
transformers >= 0.4 && < 0.6, transformers >= 0.4 && < 0.6,
text >= 1.2 && <1.3, text >= 1.2 && <1.3,
stm >= 2.4 && <2.5,
string-conv >= 0.1 && <0.2, string-conv >= 0.1 && <0.2,
bytestring >= 0.10 && <0.11 bytestring >= 0.10 && <0.11
+14 -1
View File
@@ -30,8 +30,21 @@ import qualified Applicative as X
-- Maybe'ized version of partial functions -- Maybe'ized version of partial functions
import Safe as X ( import Safe as X (
headMay headMay
, headDef
, initMay , initMay
, initDef
, initSafe
, tailMay , tailMay
, tailDef
, tailSafe
, lastDef
, lastMay
, lookupJust
, findJust
, foldr1May
, foldl1May
, atMay
, atDef
) )
-- Applicatives -- Applicatives
@@ -233,10 +246,10 @@ import Control.Monad.ST as ST
-- Concurrency and Parallelism -- Concurrency and Parallelism
import Control.Exception as X import Control.Exception as X
import Control.Monad.STM as X
import Control.Concurrent as X import Control.Concurrent as X
import Control.Concurrent.Async as X import Control.Concurrent.Async as X
import Foreign.Storable as Exports (Storable) import Foreign.Storable as Exports (Storable)
-- Read instances hiding unsafe builtins (read) -- Read instances hiding unsafe builtins (read)