Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
nofib
Commits
de0d1798
Commit
de0d1798
authored
Nov 30, 2004
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2004-11-30 15:28:12 by simonmar]
Rename Maybe to avoid class with Haskell 98 module of the same name.
parent
818562da
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
real/infer/Infer.hs
real/infer/Infer.hs
+1
-1
real/infer/InferMonad.hs
real/infer/InferMonad.hs
+1
-1
real/infer/Main.hs
real/infer/Main.hs
+1
-1
real/infer/MaybeM.hs
real/infer/MaybeM.hs
+1
-1
real/infer/Substitution.hs
real/infer/Substitution.hs
+1
-1
No files found.
real/infer/Infer.hs
View file @
de0d1798
...
...
@@ -11,7 +11,7 @@ import Environment (Env, lookupEnv, extendLocal, extendGlobal,
domEnv
,
freeTVarEnv
)
import
InferMonad
(
Infer
,
thenI
,
returnI
,
guardI
,
getSubI
,
freshI
,
freshesI
,
unifyI
,
substituteI
)
import
Maybe
import
Maybe
M
specialiseI
::
PolyType
->
Infer
MonoType
specialiseI
(
All
xxs
tt
)
=
freshesI
(
length
xxs
)
`
thenI
`
(
\
yys
->
...
...
real/infer/InferMonad.hs
View file @
de0d1798
...
...
@@ -2,7 +2,7 @@ module InferMonad (Infer, returnI, eachI, thenI, guardI, useI, getSubI,
substituteI
,
unifyI
,
freshI
,
freshesI
)
where
import
Maybe
(
Maybe
,
returnM
,
eachM
,
thenM
,
failM
,
guardM
,
theM
,
existsM
,
useM
)
import
Maybe
M
(
Maybe
,
returnM
,
eachM
,
thenM
,
failM
,
guardM
,
theM
,
existsM
,
useM
)
import
StateX
(
StateX
,
returnSX
,
eachSX
,
thenSX
,
toSX
,
putSX
,
getSX
,
useSX
)
import
Type
(
TVarId
,
TConId
,
MonoType
(
TVar
,
TCon
),
freeTVarMono
)
import
Substitution
(
Sub
,
applySub
,
lookupSub
,
emptySub
,
extendSub
,
domSub
,
unifySub
)
...
...
real/infer/Main.hs
View file @
de0d1798
...
...
@@ -7,7 +7,7 @@ import Type
import
Environment
import
InferMonad
import
Substitution
(
Sub
)
import
Maybe
(
Maybe
)
import
Maybe
M
(
Maybe
)
import
Infer
main
=
interact
...
...
real/infer/Maybe.hs
→
real/infer/Maybe
M
.hs
View file @
de0d1798
module
Maybe
module
Maybe
M
(
Maybe
,
returnM
,
eachM
,
thenM
,
failM
,
orM
,
guardM
,
filterM
,
theM
,
existsM
,
useM
)
where
...
...
real/infer/Substitution.hs
View file @
de0d1798
...
...
@@ -5,7 +5,7 @@ module Substitution (Sub, applySub, lookupSub, emptySub, extendSub,
import
Type
(
TVarId
,
TConId
,
MonoType
(
TVar
,
TCon
),
freeTVarMono
)
import
FiniteMap
(
FM
,
emptyFM
,
lookupElseFM
,
makeFM
,
extendFM
,
thenFM
,
mapFM
,
domFM
,
ranFM
)
import
Maybe
(
Maybe
,
thenM
,
returnM
,
failM
,
guardM
)
import
Maybe
M
(
Maybe
,
thenM
,
returnM
,
failM
,
guardM
)
data
Sub
=
MkSub
(
FM
TVarId
MonoType
)
rep
::
Sub
->
FM
TVarId
MonoType
rep
(
MkSub
f
)
=
f
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment