GaloisInc / saw-script

The SAW scripting language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cryptol newtypes not visible when imported using `cryptol_load`

qsctr opened this issue · comments

module M where
newtype T = { x : Bit }
type U = T
sawscript> M <- cryptol_load "M.cry"
sawscript> {| M::T |}

Stack trace:
Cryptol error:
[error] at <stdin>:1:4--1:8
    Type not in scope: M::T

sawscript> {| M::U |}
[05:39:06.725] M::T

It seems like we are only adding type synonym names to the naming environment and not newtype names.