Commit dce5d027 authored by Dato Simó's avatar Dato Simó

THH.hs: delete isOptional, no longer used

The isOptional function is no longer used after a1505857 (“Convert
opcode TH code to the use of Field type”).
Signed-off-by: default avatarDato Simó <>
Reviewed-by: default avatarIustin Pop <>
parent 5e360222
......@@ -503,13 +503,6 @@ genOpCode name cons = do
(loadsig, loadfn) <- genLoadOpCode cons
return [declD, loadsig, loadfn, savesig, savefn]
-- | Checks whether a given parameter is options.
-- This requires that it's a 'Maybe'.
isOptional :: Type -> Bool
isOptional (AppT (ConT dt) _) | dt == ''Maybe = True
isOptional _ = False
-- | Generates the \"save\" clause for an entire opcode constructor.
-- This matches the opcode with variables named the same as the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment