Skip to content

Rank-N arguments not supported #24

@3noch

Description

@3noch
{-# LANGUAGE LiberalTypeSynonyms #-}

test :: "arg" :! (forall a. f a -> g a) -> f b -> g b
test x = x

complains with

    • Illegal polymorphic type: forall a. f a -> g a
      GHC doesn't yet support impredicative polymorphism
    • In the type signature:
        test :: "arg" :! (forall a. f a -> g a) -> f b -> g b
   |
   | test :: "arg" :! (forall a. f a -> g a) -> f b -> g b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions