dejafu/dejafu-tests/Examples/ClassLaws/Impredicative.hs

13 lines
356 B
Haskell
Raw Normal View History

2016-05-26 15:54:13 +03:00
{-# LANGUAGE ImpredicativeTypes #-}
-- | This is a separate module because of the need for
-- ImpredicativeTypes, which breaks things elsewhere in the main
-- SearchParty module.
module Examples.ClassLaws.Impredicative where
2016-05-12 20:21:01 +03:00
import Control.Monad.ST (ST, runST)
2016-05-26 15:54:13 +03:00
import Unsafe.Coerce (unsafeCoerce)
2016-05-12 20:21:01 +03:00
runST' :: ST t Bool -> Bool
runST' = unsafeCoerce runST