Skip to content
Snippets Groups Projects
Commit 7884da81 authored by sof's avatar sof
Browse files

[project @ 1998-04-06 18:35:24 by sof]

new function: isForAllTy
parent ca2788ca
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ module Type (
mkSynTy, isSynTy,
mkForAllTy, mkForAllTys, splitForAllTy_maybe, splitForAllTys,
applyTy, applyTys,
applyTy, applyTys, isForAllTy,
TauType, RhoType, SigmaType, ThetaType,
isTauTy,
......@@ -333,6 +333,11 @@ splitForAllTy_maybe (SynTy _ ty) = splitForAllTy_maybe ty
splitForAllTy_maybe (ForAllTy tyvar ty) = Just(tyvar, ty)
splitForAllTy_maybe _ = Nothing
isForAllTy :: GenType flexi -> Bool
isForAllTy (SynTy _ ty) = isForAllTy ty
isForAllTy (ForAllTy tyvar ty) = True
isForAllTy _ = False
splitForAllTys :: GenType flexi -> ([GenTyVar flexi], GenType flexi)
splitForAllTys ty = split ty ty []
where
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment