
18 Jan
2016
18 Jan
'16
7:52 a.m.
Is it possible to have GHC plugins get invoked from the ghci *REPL* (in addition to loaded source modules)? I'm doing some monomorphization-based transformation, and currently I write scads of trivial monomorphic specialization definitions like
sumt6 = sum :: Tree 6 Int -> Int
I'd instead love to enter "let sumt6 = sum :: Tree 6 Int -> Int" or (better) just "sum :: Tree 6 Int -> Int" into the REPL and have my plugin run, without having to keep monkeying with a source file and reloading. As I understand it, an expression is turned into "let it = ...", so maybe the expression option would come for free with the ability to run plugins on in-REPL definitions. -- Conal
3457
Age (days ago)
3457
Last active (days ago)
0 comments
1 participants
participants (1)
-
Conal Elliott