tschrijv / AutBound

Code voor Abstract Syntax Tree Code Generator for Haskell-based Com- and Transpilers
1 stars 0 forks source link

Add type signature to generated functions #2

Closed VonTum closed 4 years ago

VonTum commented 4 years ago

The generated functions do not contain type signatures, which reduces readability and extends these functions' interfaces further than desired:

For example generateHnatVarValue is inferred to be of type (Num t, Eq t) => t -> Variable -> Variable while it's use case is only with Integers, so it should be Int -> Variable -> Variable

-> xyzshiftplus :: ?? -> xyzshiftminus :: ?? -> termmap, typemap, substitution functions all require type signatures