mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 05:37:14 +03:00
Merge pull request #5216 from unisonweb/topic/decomp-foreign
Use builtin reference names in foreign decompiling
This commit is contained in:
commit
212a232736
@ -230,7 +230,11 @@ decompileForeign backref topTerms f
|
||||
| Just s <- unwrapSeq f =
|
||||
list' () <$> traverse (decompile backref topTerms) s
|
||||
decompileForeign _ _ (Wrap r _) =
|
||||
err (BadForeign r) $ bug "<Foreign>"
|
||||
err (BadForeign r) $ bug text
|
||||
where
|
||||
text
|
||||
| Builtin name <- r = "<" <> name <> ">"
|
||||
| otherwise = "<Foreign>"
|
||||
|
||||
decompileBytes :: (Var v) => By.Bytes -> Term v ()
|
||||
decompileBytes =
|
||||
|
Loading…
Reference in New Issue
Block a user