Rework Safe Module (#83)

* Initial fork on minimal safe submodule

* Add new Safe module

Signed-off-by: Stephen Diehl <stephen.m.diehl@gmail.com>

* Refactor Safe module
This commit is contained in:
Stephen Diehl
2018-03-22 13:31:29 +00:00
committed by GitHub
parent 57912017fe
commit a8d1363581
5 changed files with 157 additions and 9 deletions
+4
View File
@@ -12,6 +12,7 @@ module Debug (
traceShowId,
traceShowM,
notImplemented,
witness,
) where
import Data.Text (Text, unpack)
@@ -63,3 +64,6 @@ notImplemented = error "Not implemented"
{-# WARNING undefined "'undefined' remains in code" #-}
undefined :: a
undefined = error "Prelude.undefined"
witness :: a
witness = error "Type witness should not be evaluated"