Add instance Zero Integer.

This commit is contained in:
Brian Huffman 2017-09-28 13:26:01 -07:00
parent cce32a4868
commit d9cbfd62d1

View File

@ -42,6 +42,9 @@ solveZeroInst ty = case tNoUser ty of
-- Zero Bit
TCon (TC TCBit) [] -> SolvedIf []
-- Zero Integer
TCon (TC TCInteger) [] -> SolvedIf []
-- Zero a => Zero [n]a
TCon (TC TCSeq) [_, a] -> SolvedIf [ pZero a ]