dejafu/dejafu-tests/Examples/ClassLaws/Impredicative.hs
Michael Walker 2aa2b8f447 Unify IO and ST instances
Closes #44
2016-07-21 19:33:49 +01:00

13 lines
356 B
Haskell

{-# 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
import Control.Monad.ST (ST, runST)
import Unsafe.Coerce (unsafeCoerce)
runST' :: ST t Bool -> Bool
runST' = unsafeCoerce runST