instance hell

This commit is contained in:
crumbtoo
2024-02-26 10:12:33 -07:00
parent 65b9228794
commit 5bf83ffbaf
10 changed files with 284 additions and 183 deletions

View File

@@ -44,8 +44,9 @@ justLexCore s = lexCoreR (T.pack s)
justParseCore :: String -> Either [MsgEnvelope RlpcError] Program'
justParseCore s = parse (T.pack s)
& undefined
& rlpcToEither
where parse = lexCoreR >=> parseCoreProgR
where parse = lexCoreR @Identity >=> parseCoreProgR
justTypeCheckCore :: String -> Either [MsgEnvelope RlpcError] Program'
justTypeCheckCore s = typechk (T.pack s)