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
frege> type F = (forall b. [b] -> [b]) -> Int
type alias F :: ?
frege> g :: F -> Int; g f = undefined
4: application of g will diverge.
4: Type [b]->[b]
inferred from g is not as polymorphic as
expected type forall b.[b] -> [b]
frege> :{
> g :: F -> Int
> g f = undefined
> :}
function g :: ((forall b.[b] -> [b]) -> Int) -> Int
The text was updated successfully, but these errors were encountered:
Both command line REPL and online REPL now support the following:
frege> type F = (forall b. [b] -> [b]) -> Int
type alias F :: ?
frege> g :: F -> Int; g f = undefined
function g :: ((forall b.[b] -> [b]) -> Int) -> Int
The text was updated successfully, but these errors were encountered: