mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 13:01:31 +03:00
wibble
This commit is contained in:
parent
4e65ad03f9
commit
13ac2d9f05
@ -217,7 +217,8 @@ qualifiedEnv me = fold $
|
||||
newtype LoadedModules = LoadedModules
|
||||
{ getLoadedModules :: [LoadedModule]
|
||||
} deriving (Show, Generic, NFData)
|
||||
-- ^ Invariant: All the dependencies of any module `m` must precede `m` in the list.
|
||||
-- ^ Invariant: All the dependencies of any module `m` must precede `m`
|
||||
-- in the list.
|
||||
|
||||
instance Monoid LoadedModules where
|
||||
mempty = LoadedModules []
|
||||
|
@ -59,6 +59,12 @@ data Module = Module { mName :: !ModName
|
||||
, mDecls :: [DeclGroup]
|
||||
} deriving (Show, Generic, NFData)
|
||||
|
||||
isParametrizedModule :: Module -> Bool
|
||||
isParametrizedModule m = not (null (mParamTypes m) &&
|
||||
null (mParamConstraints m) &&
|
||||
null (mParamFuns m))
|
||||
|
||||
|
||||
|
||||
|
||||
data Expr = EList [Expr] Type -- ^ List value (with type of elements)
|
||||
|
Loading…
Reference in New Issue
Block a user