Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
curry
curry-frontend
Commits
2fed248b
Commit
2fed248b
authored
Oct 10, 2011
by
Björn Peemöller
Browse files
small refactoring
parent
2aeb3b59
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CompilerEnv.hs
View file @
2fed248b
...
...
@@ -27,21 +27,21 @@ import Env.Value
-- compilation.
data
CompilerEnv
=
CompilerEnv
{
moduleIdent
::
ModuleIdent
-- ^ identifier of the module
,
aliasEnv
::
AliasEnv
-- ^ aliases for imported modules
,
evalAnnotEnv
::
EvalEnv
-- ^ evaluation annotations
,
interfaceEnv
::
InterfaceEnv
-- ^ declarations of imported interfaces
,
opPrec
Env
::
P
Env
-- ^
operator precedenc
es
,
alias
Env
::
Alias
Env
-- ^
aliases for imported modul
es
,
tyConsEnv
::
TCEnv
-- ^ type constructors
,
valueEnv
::
ValueEnv
-- ^ functions and data constructors
,
opPrecEnv
::
PEnv
-- ^ operator precedences
,
evalAnnotEnv
::
EvalEnv
-- ^ evaluation annotations
}
deriving
Show
initCompilerEnv
::
ModuleIdent
->
CompilerEnv
initCompilerEnv
mid
=
CompilerEnv
{
moduleIdent
=
mid
,
aliasEnv
=
initAliasEnv
,
evalAnnotEnv
=
initEEnv
,
interfaceEnv
=
initInterfaceEnv
,
opPrec
Env
=
init
P
Env
,
alias
Env
=
init
Alias
Env
,
tyConsEnv
=
initTCEnv
,
valueEnv
=
initDCEnv
,
opPrecEnv
=
initPEnv
,
evalAnnotEnv
=
initEEnv
}
src/Imports.hs
View file @
2fed248b
...
...
@@ -28,7 +28,7 @@ import Base.TopEnv
import
Base.Types
import
Env.Interface
import
Env.ModuleAlias
import
Env.ModuleAlias
(
importAliases
)
import
Env.OpPrec
import
Env.TypeConstructors
import
Env.Value
...
...
Write
Preview
Supports
Markdown
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