Download Manual
Transcript
update all type variables updTCons :: ((String,String) → [TypeExpr] → TypeExpr) → TypeExpr → TypeExpr update all type constructors updFuncTypes :: (TypeExpr → TypeExpr → TypeExpr) → TypeExpr → TypeExpr update all functional types argTypes :: TypeExpr → [TypeExpr] get argument types from functional type resultType :: TypeExpr → TypeExpr get result type from (nested) functional type rnmAllVarsInTypeExpr :: (Int → Int) → TypeExpr → TypeExpr rename variables in type expression updQNamesInTypeExpr :: ((String,String) → (String,String)) → TypeExpr → TypeExpr update all qualified names in type expression trOp :: ((String,String) → Fixity → Int → a) → OpDecl → a transform operator declaration opName :: OpDecl → (String,String) get name from operator declaration opFixity :: OpDecl → Fixity get fixity of operator declaration opPrecedence :: OpDecl → Int get precedence of operator declaration updOp :: ((String,String) → (String,String)) → (Fixity → Fixity) → (Int → Int) → OpDecl → OpDecl update operator declaration updOpName :: ((String,String) → (String,String)) → OpDecl → OpDecl update name of operator declaration updOpFixity :: (Fixity → Fixity) → OpDecl → OpDecl update fixity of operator declaration 292