mono fixier
This commit is contained in:
parent
55fd35d661
commit
1a21698772
3 changed files with 18 additions and 22 deletions
|
|
@ -383,11 +383,7 @@ createNewData ((consIdent, consType, polyData) : input) o =
|
|||
(M.Data newDataType [newCons])
|
||||
o
|
||||
where
|
||||
polyDataIdent = case polyData of
|
||||
T.Data (T.TData i _) _ -> i
|
||||
T.Data (T.TLit i) _ -> i
|
||||
t -> error $ "Data type is :" ++ show t ++ " which should be impossible"
|
||||
|
||||
T.Data (T.TData polyDataIdent _) _ = polyData
|
||||
newDataType = getDataType consType
|
||||
newDataName = newName newDataType polyDataIdent
|
||||
newCons = M.Inj consIdent consType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue