Skip to content
Snippets Groups Projects
Commit 2a180772 authored by sof's avatar sof
Browse files

[project @ 1997-09-04 19:53:50 by sof]

Removed assocMaybe SPECIALIZE pragma
parent e376c9e1
No related merge requests found
......@@ -28,9 +28,6 @@ module Maybes (
catMaybes
) where
CHK_Ubiq() -- debugging consistency check
import Unique (Unique) -- only for specialising
#if __GLASGOW_HASKELL__ >= 204
import Maybe( catMaybes, mapMaybe )
#endif
......@@ -131,12 +128,6 @@ assocMaybe alist key
where
lookup [] = Nothing
lookup ((tv,ty):rest) = if key == tv then Just ty else lookup rest
{-# SPECIALIZE assocMaybe
:: [(FAST_STRING, b)] -> FAST_STRING -> Maybe b
, [(Int, b)] -> Int -> Maybe b
, [(Unique, b)] -> Unique -> Maybe b
#-}
\end{code}
@mkLookupFun eq alist@ is a function which looks up
......
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