Changed genMissing so that it generates a run-time error in the generated code
This commit is contained in:
parent
e79ccf1b46
commit
ce86ec2337
|
@ -98,7 +98,7 @@ genName n = let unders = [if c == '.' then '_' else c | c <- A.nameName n] in
|
|||
genMissing = flip genMissing' ()
|
||||
|
||||
genMissing' :: Data a => String -> a -> CGen()
|
||||
genMissing' s x = tell ["{-",s,": ", showConstr $ toConstr x,"-}"] -- for now, everthing is missing!
|
||||
genMissing' s x = tell ["(error \"",s,": ", showConstr $ toConstr x,"\")"] -- for now, everthing is missing!
|
||||
-- TODO in future generate a Die error
|
||||
|
||||
genHeader :: CGen ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user