ssadler / hawk

Awk for Hoodlums
BSD 3-Clause "New" or "Revised" License
35 stars 2 forks source link

compiler options in the prelude #56

Open gelisam opened 11 years ago

gelisam commented 11 years ago

options like OverloadedStrings, NoExplicitPrelude, etc.

melrief commented 11 years ago

My strategy for this is similar to what we do for modules:

Currently, the function initInterpreter of System/Console/Hawk.hs loads some default extensions, this should be changed by removing them and loading the cached extensions in $HOME/.hawk/cache/extensions.

melrief commented 11 years ago

I found a solution: the package haskell-src-exts has a function called getTopPragmas that extract the pragmas. I'm starting the implementation of the cache file and then we can easily load that file.