bonjour,
j'essaye de faire une fusion de 2 maybe liste avec le ++ mais j'ai les erreures suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 /Users/michel/Documents/workspace/2LammensMichelInterpreteurProlog/Setup.hs:65:58: Couldn't match expected type [a0] with actual type Maybe Substitution In the first argument of (++), namely listsub In the expression: listsub ++ listsub /Users/michel/Documents/workspace/2LammensMichelInterpreteurProlog/Setup.hs:65:58: Couldn't match expected type Maybe Substitution with actual type [a0] In the expression: listsub ++ listsub In an equation for substition: substition ((V variable), (F nom1 lTerme1)) listsub = listsub ++ listsub /Users/michel/Documents/workspace/2LammensMichelInterpreteurProlog/Setup.hs:65:69: Couldn't match expected type [a0] with actual type Maybe Substitution In the second argument of (++), namely listsub In the expression: listsub ++ listsub Failed, modules loaded: none.
Partager