2 ms·
You might want to use mueval (http://hackage.haskell.org/package/mueval http://hackage.haskell.org/package/mueval) in order to prevent evil people from being ev
by zbanks 16y ago
You might want to use mueval (http://hackage.haskell.org/package/mueval http://hackage.haskell.org/package/mueval) in order to prevent evil people from being evil (at least to your server.)
It works pretty well at keeping crazy stuff out. Hopefully you added some sort of limiter to your page... but if you haven't, this is a great start.
Nice UI & stuff, though. Seems to work pretty well. It would be nice, like paulgb said, to be able to enter a block of code and execute it. I know this currently behaves a lot like ghci, but it would be nice to test larger sections of code.
Also cool job with the lessons. Sure it's pretty light, but it provides a good, quick introduction.
- chrisdone 16y agoHi, TryHaskell actually uses mueval underneath. See here http://chrisdone.com/posts/2010-04-05-haskell-json-service-tryhaskell.html http://chrisdone.com/posts/2010-04-05-haskell-json-service-t... for more details about how. The JSON service supports state (code loading), with restrictions on imports (e.g. no importing unsafePerformIO), it's just that I haven't added a box to TryHaskell to enter the code. Definitely, it seems people would like to write bigger sections of code, which I like! I'm still pondering how to alter the layout to support this!