|
Partially applied functions
|
| |
Hi cafe, Is such a thing possible, add :: Int -> Int -> Int add x y = x + y -- a list of partially applied functions adds = [add 3, add 5, add 7, add 3, add 5, add 8] -- an example usage of the list k = map (\ f -> f 10 ) adds add3s = filter (?) adds -- add3s = [add 3, add 3] addEvens = filter (?) adds --addEvens = [add 8]... more »
|
|
HWN This week
|
| |
Hey folks, I'm at home this weekend, and the internet is somewhat dodgey, so I'm going to delay the special Thanksgiving episode of the HWN till sunday afternoon... I suppose the Turkey-coma isn't helping either, but I'll never admit it... /Joe ______________________________ _________________... more »
|
|
Custom cabal languages (hooks?)
|
| |
I'm currently working on a binding to Brian Gladman's C/assembler AES implementation. This code is sufficiently small that it makes little sense to create a separate C library for it; furthermore, it isn't typically packaged by the various linux distributions, never mind other OSs. As a result, I'd like to make it part of the cabalized AES package.... more »
|
|
hoogle down
|
| |
hoogle is down for me: "Internal Server Error" Thanks Keith
|
|
haskell in online contests
|
| |
Ive just started learning haskell pretty recently and Ive been trying to solve some online contest problems as part of this exercise. However, Ive been having almost no success. For various reasons my answers almost always are too slow. I recently stumbled across this link which was quite useful [link]. This helped me speed up some of my... more »
|
|
Reducing Latency - Reducing the Size of Larger Data Structures
|
| |
An idea to reduce memeory latency, is to have a complex dual/quad/etc. core CPU surrounded by four or more simpler CPUs. The simpler CPUs have a simpler instruction set and do less context switching. So any operations (e.g. folding, filtering) that reduce the size of a larger data structure and that can be done on the simpler CPU... more »
|
|
GLFW Textures (bloxorz)
|
| |
Hi Haskellers, I have two issues with the bloxorz game (current version bloxorz-0.1 on hackage). Perhaps they're mutually related. You tell me. First, it seems that there is no refresh on the successive block positions. Look at [link] to see what I mean.... more »
|
|
ANN: wumpus-core-0.13.0
|
| |
Hello All Wumpus-core is a library for drawing 2D vector pictures, supporting output to PostScript and SVG. It has no FFI dependencies, so should be portable across operating systems (assuming GHC with type families). Wumpus-core is functional, though quite low-level - its similar to PostScript but with a more 'coordinate free' style. I'm working on a... more »
|
|
Type synonym family inside type class
|
| |
...Perhaps this isn't answering your question, but you can turn the above into an associated type as follows. class MkErrorAlg f where ...Regards, Sean
|
|
Other instances of Integral
|
| |
Hello, I would like to ask wheter there are other instances of the class Integral? And I would like to ask what the difference is between the following functions: SomeFunctionA :: (Integral a) => a -> a, SomeFunctionB (Integer a) => a -> a, SomeFunctionC (Int a) => a -> a. What I do know is, that the Int can have underflow and overflows, however I... more »
|
|
|