Serge Leblanc
2018-09-13 15:01:48 UTC
Dear all, how do indicate that pâ and p have the same type in this above
example? Apparently, {R = R} is not enough.
Estimata Äiuj, kiel oni indikas ke pâ kaj p havas la saman tipon en Äi
supra ekzemplo ? Åajne, {R = R} ne sufiÅas.
 {-# NON_TERMINATING #-}
 parseâ² : â {R xs} â Parser R xs â Colist Char â Colist R
 parseâ² {R} pâ = parseâ³ pâ
   where
     parseâ³ : â {R xs} â Parser R xs â Colist Char â Colist R
     parseⳠ{xs = xs} p [] = Colist.fromList xs
     parseâ³ {R = R}{xs = xs} p (t â· s) with t â '\n'
     ... | false = parseâ³ (â p t) (â s)
     ... | true = (Colist.fromList xs) ++ (parseâ³ pâ (â s))
Sinceran dankon pro via venonta helpo.
example? Apparently, {R = R} is not enough.
Estimata Äiuj, kiel oni indikas ke pâ kaj p havas la saman tipon en Äi
supra ekzemplo ? Åajne, {R = R} ne sufiÅas.
 {-# NON_TERMINATING #-}
 parseâ² : â {R xs} â Parser R xs â Colist Char â Colist R
 parseâ² {R} pâ = parseâ³ pâ
   where
     parseâ³ : â {R xs} â Parser R xs â Colist Char â Colist R
     parseⳠ{xs = xs} p [] = Colist.fromList xs
     parseâ³ {R = R}{xs = xs} p (t â· s) with t â '\n'
     ... | false = parseâ³ (â p t) (â s)
     ... | true = (Colist.fromList xs) ++ (parseâ³ pâ (â s))
Sinceran dankon pro via venonta helpo.
--
Serge Leblanc
------------------------------------------------------------------------
gpg --search-keys 0x67B17A3F
Fingerprint = 2B2D AC93 8620 43D3 D2C2 C2D3 B67C F631 67B1 7A3F
Serge Leblanc
------------------------------------------------------------------------
gpg --search-keys 0x67B17A3F
Fingerprint = 2B2D AC93 8620 43D3 D2C2 C2D3 B67C F631 67B1 7A3F