Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
691965d4
Commit
691965d4
authored
Aug 10, 2001
by
Vincent Zweije
Browse files
Translate typerule function from Miranda to Clean
parent
0ae161cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
sucl/cli.dcl
View file @
691965d4
definition
module
cli
// $Id$
from
coreclean
import
SuclSymbol
,
SuclVariable
,
SuclTypeSymbol
,
SuclTypeVariable
from
rule
import
Rule
::
Cli
typerule
::
Cli
SuclSymbol
->
Rule
SuclTypeSymbol
SuclTypeVariable
sucl/cli.icl
View file @
691965d4
...
...
@@ -119,7 +119,12 @@ Abstype implementation.
> exports (tdefs,(es,as,ts,rs)) = es
> typerule (tdefs,(es,as,ts,rs)) = fst.maxtypeinfo ts
*/
typerule
::
Cli
SuclSymbol
->
Rule
SuclTypeSymbol
SuclTypeVariable
typerule
_
_
=
undef
/*
> rules (tdefs,(es,as,ts,rs)) = foldmap Present Absent rs
> imports (tdefs,(es,as,ts,rs)) = [sym|(sym,tdef)<-ts;~member (map fst rs) sym]
...
...
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