on master help sign in
Type Providers mean we can't relax the signature of run__provider
2a883b9Sam Elliott
libs/prelude/IO.idr+3−1
@@ -152,7 +152,9 @@ FFI_C = MkFFI C_Types String String
152IO : Type -> Type
152IO : Type -> Type
153IO = IO' FFI_C
153IO = IO' FFI_C
154
154
155+-- Cannot be relaxed as is used by type providers and they expect IO a
156+-- in the first argument.
155−run__provider : IO' l a -> PrimIO a
157+run__provider : IO a -> PrimIO a
156run__provider (MkIO f) = f (TheWorld prim__TheWorld)
158run__provider (MkIO f) = f (TheWorld prim__TheWorld)
157
159
158prim_fork : PrimIO () -> PrimIO Ptr
160prim_fork : PrimIO () -> PrimIO Ptr