Resolves #90
Resolves #90
pounce/mikan:pragma into main Resolves #90
Let's also kill modifyGlobalDefinition and modifyGlobalSignature.
@ -757,2 +762,4 @@
{-else-} $ uselessPragma
"INLINE pragmas must appear in the same file as their corresponding definitions"
d@Constructor{ conSrcCon } | copatternMatchingAllowed conSrcCon
-> modifyGlobalDefinition x $ set lensTheDef d{ conInline = b }
you missed constructors from imported modules
4afd1c1987
2b70e6010e
@ -1002,3 +1002,3 @@
setType (conName con) conType
-- Record telescope: Includes both parameters and fields.
modifyGlobalDefinition name $ set (lensTheDef . lensRecord . lensRecTel) fullTel
-- XXX(pounce): do we need to `modifyImportedSignature` here or above?
i'd appreciate some insight here and then i can delete the comment
name is the name of the record type we just created, right? So it should be present in the stSignature, not stImports.
(You can also get rid of modifyImportedSignature now.)
2b70e6010e
to a3cba2ea32
@ -184,3 +184,3 @@
setFunctionFlag :: FunctionFlag -> Bool -> QName -> TCM ()
setFunctionFlag flag val q = modifyGlobalDefinition q $ set (lensTheDef . funFlag flag) val
setFunctionFlag flag val q = setTCLens (stSignature . ix q . lensTheDef . funFlag flag) $ val
setTCLens (stSignature . ix q . lensTheDef . funFlag flag) val
a3cba2ea32
0286acb8f3
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?