Open JonathanLorimer opened 3 years ago
Whoops, this isn't actually ready for review, I added DocTests and found a bug where my type family for a custom error message can't resolve EIO (e1 <> e2) a
. I need to look into this more!
Okay, sorted out the funny type error, I was using the EIO constructor to lift an IO action, but I really need an unsafeLiftIO
which allows you to run an IO action in EIO as long as you promise it doesn't throw an exception.
This haskell code generates the corresponding type error: