haskell - how to compile category code with ML compiler? -


find there many ml compilers not know compiler suitable these code, , not know how compile it

and find haskell has operads package suitable usage of category possible translate haskell?

cs.man.ac.uk/~david/categories/programs/cat

when compile ocaml, got error

# #use "c:/documents , settings/wilson/my documents/downloads/ml/cat.ml";; file "c:/documents , settings/wilson/my documents/downloads/ml/cat.ml", line 20, characters 13-14: error: syntax error: operator expected. # #use "c:/documents , settings/wilson/my documents/downloads/ml/functorcat.ml";; file "c:/documents , settings/wilson/my documents/downloads/ml/functorcat.ml", line 12, characters 13-14: error: syntax error: operator expected. # #use "c:/documents , settings/wilson/my documents/downloads/ml/basic.ml";; file "c:/documents , settings/wilson/my documents/downloads/ml/basic.ml", line 7, characters 15-16: error: syntax error 

the link posted incorrect, file can found here.

it says language right in header

(*                computational category theory                            oct. 1987                programming language: standard ml    *) 

so need standard ml (sml) compiler. need 1 that's compatible code written on 25 years ago - guess mine whether modern sml compiler able compile code.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -