You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I left out a List Int parameter in the declaration of rap, and the resulting error message doesn't indicate the line number (idris 1.3.0).
Steps to Reproduce
module Accumulate
rap: (Int -> Int) ->List Int ->List Int
rap f acc [] = acc
rap f acc (x :: xs) = rap f (f x :: acc) xs
Expected Behavior
An error message explaining that the type signature for rap doesn't match its declaration, along with a line number hint.
Observed Behavior
The compiler correctly notes that rap may be applied to too many arguments, but doesn't tell me the line number:
Type checking ./Accumulate.idr
When checking left hand side of rap:
Type mismatch between
List Int (Type of rap _ _)
and
_ -> _ (Is rap _ _ applied to too many arguments?)
Specifically:
Type mismatch between
List
and
\uv => _ -> uv
The text was updated successfully, but these errors were encountered:
I left out a
List Int
parameter in the declaration ofrap
, and the resulting error message doesn't indicate the line number (idris 1.3.0).Steps to Reproduce
Expected Behavior
An error message explaining that the type signature for
rap
doesn't match its declaration, along with a line number hint.Observed Behavior
The compiler correctly notes that
rap
may be applied to too many arguments, but doesn't tell me the line number:The text was updated successfully, but these errors were encountered: