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
Use an underscore (_) for the format, because Idris can infer from the type that it must be toFormat (unpack fmt).
This's the explanation from the book for above line but I'm still a bit puzzled by how does the inferring work here? Since fmt comes in as a String type, how does it become a Format type when passed to printfFmt?
The text was updated successfully, but these errors were encountered:
TypeDD-Samples/Chapter6/Printf.idr
Line 27 in a5c08a1
This's the explanation from the book for above line but I'm still a bit puzzled by how does the inferring work here? Since
fmt
comes in as aString
type, how does it become aFormat
type when passed toprintfFmt
?The text was updated successfully, but these errors were encountered: