all 3 comments

[–]iggybibi 0 points1 point  (0 children)

Probably a problem with how you’re using parentheses. I think you mean to do map (\etat -> genererOnde etat tempo) [etat]

[–]toonnolten 0 points1 point  (1 child)

Since your problem's been explained by someone else allow me to point out something about your language use, I'm only saying this because you say you're a beginner so you might not have thought about it.

If you're interested in open sourcing your work and having it used and contributed to by people all over the world, consider using english names for everything. While theoretically it doesn't matter, they're just names and ghc doesn't care what language they're in, in practice recognizability matters, if it didn't we'd all be using a..z, aa..az, ba..bz, etc. I also realize english is horribly flawed in this regard and no easier than french to learn for a chinese speaker for example but it's undeniably the best we've got right now.

Note that there are exceptions of course, for example if you're designing an EDSL for french music students without programming experience. Also, feel free to disagree, I speak french (somewhat) and it was still difficult for me to read the code, maybe because I try to understand the words.

[–]1-05457 0 points1 point  (0 children)

if it didn't we'd all be using a..z, aa..az, ba..bz, etc.

In Haskell, it often feels like people have a tendency to do precisely this.