Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Haskell self defined?

For instance, how is function application defined (' ')? Does that definition have to be within the parser/compiler itself, or can it be overridden in a custom script?

like image 225
Athan Clark Avatar asked Sep 22 '26 11:09

Athan Clark


1 Answers

Haskell is not defined metacircularly. It is defined by the haskell report: http://www.haskell.org/onlinereport/haskell2010/

There is no pluggable haskell compiler that lets you dynamically override application. You can use template haskell, or you can parse haskell using haskell-src-exts and write your own interpreter, or you can use plugins: http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/compiler-plugins.html

like image 79
sclv Avatar answered Sep 24 '26 06:09

sclv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!