Logo
Explore Help
Sign In
wrath/shaniqua-plugins
1
0
Fork 0
You've already forked shaniqua-plugins
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
e848b6ea1d8a0e25ffdaaa18912bffac09ab23ec
shaniqua-plugins/testsuite/eval/eval_/Main.hs

10 lines
257 B
Haskell
Raw Normal View History

Import hs-plugins cvs
2005-04-24 08:51:33 +00:00
Update examples to use new module names
2005-05-15 06:03:55 +00:00
import System.Eval.Haskell
Import hs-plugins cvs
2005-04-24 08:51:33 +00:00
main = do i <- eval_ "Just (7 :: Int)"
Remove Language.Hi in favour of using the ghc-api directly, fix to work with GHC 6.8.2. This is still *very* kludgey, and it needs lots of work which I'm not entirely prepared for, seeing as I really don't know anything about the ghc-api and how things are supposed to fit together. It is quite conceivable that the code could be simplified much further by someone who actually understands the ghc-api, and there may be bugs related to the fact that I don't actually know what some things do. However, this builds and does appear to work. Most of the testsuite is passing.
2007-12-16 05:28:44 +00:00
["Data.Maybe"]
Import hs-plugins cvs
2005-04-24 08:51:33 +00:00
["-fglasgow-exts"]
[]
[] :: IO (Either [String] (Maybe (Maybe Int)))
print i
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0rc0 Page: 17ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API