Description:
Polymorphically-typed lazy purely-functional programming.
|
|
|
ghc warning
|
| |
When I compile rint :: Int -> Double -> Double rint d x = fromIntegral (round (x * 10^d)) / 10^d GHC reports main.hs:442:25: Warning: Defaulting the following constraint(s) to type `Integer' `Integral b' arising from a use of `round' at main.hs: 442:25-40 In the first argument of `fromIntegral', namely... more »
|
|
pimp my code
|
| |
hi all here is a little module for parsing midi files. it seems to work, but it's much slower than its python counterpart. maybe somebody could look through it and see if i'm making any obvious mistakes? peace stm {----------------------------- ------------------------------ ------------------------------ ---... more »
|
|
performance question
|
| |
hi All, I'm trying to create a simple application, which parses CPP output files and creates a graphviz dot file. You can find the source here: [link] I'm using test files ~25GB as input, the allocation is ~1.5GB. I tried to profile the application, but found not too much. The (:) allocates... more »
|
|
enumerations
|
| |
hello All, i tried to tune up my little application, and have found this page: [link] but the example does not even compile for me. anyone could give me a hint how to write enumeration shortly? thanks, Laszlo
|
|
oohaskell anyone?
|
| |
hi, does anybody actually really *use* OOHaskell? like for something long- lived and not just a home / small research project? [link] just curious.
|
|
Haskell style
|
| |
I would like to read some Haskell source code that does a non-trivial job and that is generally considered to be well-written. Any suggestions? Thanks, Patricia
|
|
IDE for Haskell
|
| |
I'm an experienced programmer, but just starting to learn Haskell and functional programming. Currently, I'm using GHC, GHCi, with gvim to edit programs. I like using IDEs. For example, I do my Java programming in Eclipse. I do not like Emacs. I first tried it out in about 1984, and I try it again about once every 5 years, but somehow it just does not suit me.... more »
|
|
Problem creating a ForeignPtr
|
| |
Hi all, I have this problem with the following snippet: ------------------------------ --- {-# LANGUAGE ForeignFunctionInterface #-} import Foreign.Ptr foreign import ccall "stdlib.h &free" p_free :: FunPtr (Ptr a -> IO ()) ------------------------------ --- This is a standard example reported verbatim from the GHC documentation of FunPtr:... more »
|
|
Function overloading in Haskell
|
| |
Hi, Is if possible to overload functions in Haskell similar to that of C++ or C# ? For example, if I want to define a function add which has multiple arity: add x y = x + y add x y z = x + y + z This doesn't work, the functions need to have different names. After some googling, I located the following paper by Simon Peyton Jones... more »
|
|
newbie question: printed representation for lambdas
|
| |
Hi I have <pre> *Main> \k -> k + 42 \k -> k + 42 <interactive>:1:0: No instance for (Show (a -> a)) arising from a use of `print' at <interactive>:1:0-11 Possible fix: add an instance declaration for (Show (a -> a)) In a stmt of a 'do' expression: print it </pre> This is understandable, however, is there a way to define a 'show' for... more »
|
|
|