[Haskell-cafe] Text.JSON and utf8

2013-02-11 Thread Martin Hilbig
hi, tl;dr: i propose this patch to Text/JSON/String.hs and would like to know why it is needed: @@ -375,7 +375,7 @@ where go s1 = case s1 of - (x :xs) | x '\x20' || x '\x7e' - '\\' : encControl x (go xs) + (x :xs) | x '\x20' - '\\' : encControl x (go xs) (''

[Haskell-cafe] Hint's setImports usage

2012-12-20 Thread Martin Hilbig
hi, how to use Language.Haskell.Interpreter.setImports? i use it like: setImports [My.Module] so that my interpreted modules don't need to: import My.Module But i still get: Not in scope: data constructor `MyType' What am i doing wrong? Thanks in advance. have fun martin

Re: [Haskell-cafe] Hint's setImports usage

2012-12-20 Thread Martin Hilbig
guess there is no way to add the import to the 'My.Interpreted.Module' for convenience. Sorry for the noise. have fun martin On 21.12.2012 00:35, Martin Hilbig wrote: hi, how to use Language.Haskell.Interpreter.setImports? i use it like: setImports [My.Module] so that my interpreted

Re: [Haskell-cafe] Hint's setImports usage

2012-12-20 Thread Martin Hilbig
imports. So, I often do: loadModules [MyPrelude] setTopLevelModules [MyPrelude] And stick all of the things that I want to be in scope into MyPrelude.hs. -Michael On Thu, Dec 20, 2012 at 3:35 PM, Martin Hilbig li...@mhilbig.de mailto:li...@mhilbig.de wrote: hi, how to use

Re: [Haskell-cafe] Hint's setImports usage

2012-12-20 Thread Martin Hilbig
, setImports, setTopLevelModules helped me :/ have fun martin That file can just consist of import OtherPackage.MyPrelude. -Michael On Thu, Dec 20, 2012 at 4:12 PM, Martin Hilbig li...@mhilbig.de mailto:li...@mhilbig.de wrote: oh that's neat! but what to do if MyPrelude is provided

[Haskell-cafe] How to use Jacobian from levmar lib?

2012-05-15 Thread Martin Hilbig
hi, i'm using the nice levmar package like this [1]. why is there such a big difference in 'infNorm2E' between using/not using the Jacobian? thanks in advance martin hilbig [1]: http://hpaste.org/68537 ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Database.CouchDB broken?

2010-07-31 Thread Martin Hilbig
hi, try it this way: http://gist.github.com/501951 note the type annotations and the added req param include_docs=true for getAllDocs. the first error is created by ghci, since it dont know the specific type Database.CouchDB :t runCouchDB' $ getDoc (db test) (doc xyz) runCouchDB' $ getDoc

Re: [Haskell-cafe] Re: Hot-Swap with Haskell

2010-07-16 Thread Martin Hilbig
hi, if been thinking about an haskell interpreter to, because of erlang's otp. its syntax is a mess, but its scalability is win. since erlang runs in its vm (interpreted) is there a need for a real haskell interpreter, or can there be a compiled haskell/otp with hotswapping, scaling and

Re: [Haskell-cafe] Re: ANNOUNCE: fgl-5.4.2.3

2010-07-12 Thread Martin Hilbig
On 12.07.2010 09:25, Ivan Lazar Miljenovic wrote: A couple of points I meant to make here but forgot (I was busy hacking on this and my other three graph-related packages for over a week now, and especially this past weekend it cut into my sleeping...): * Apart from bug-fixes, I don't intend on

Re: [Haskell-cafe] GHCi and State

2010-06-28 Thread Martin Hilbig
hi, On 25.06.2010 11:07, corentin.dup...@ext.mpsa.com wrote: Another couple of reflexions (sorry for monopolizing): 1. Since i am making a Nomic game, players will have to submit rules. These rules will be written in a sub-set of haskell. Instead of writing my own reader/interpreter, i'd

Re: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-20 Thread Martin Hilbig
hi, i tried this too, but i did not get it. a very nice workaround is to use hint [1]. have fun martin [1]: http://hackage.haskell.org/package/hint On 20.05.2010 20:05, Phyx wrote: I was wondering how to forcibly quiet down the API. I have a custom handler in place, but when I call the

[Haskell-cafe] corner case in Text.JSON 0.4.3

2010-05-12 Thread Martin Hilbig
Malformed JSON: invalid token in this context not\] test: stdin: hGetLine: end of file have fun martin hilbig [1]: http://hackage.haskell.org/package/json [2]: http://friendpaste.com/3IvnChRMoczf0mIKpOtrYE ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] redirecting ghc (as a library) output

2010-02-27 Thread Martin Hilbig
hi, i'm writing a Haskell View Server for CouchDB. it communicates with couchdb over stdin and stdout. it gets JSON encoded haskell code, compiles it (like on http://www.haskell.org/haskellwiki/GHC/As_a_library), gets values, runs the given code over the given values and writes the results