Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 861265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:57:06+00:00 2026-05-15T08:57:06+00:00

When I was experimenting with Haskell kinds, and trying to get the kind of

  • 0

When I was experimenting with Haskell kinds, and trying to get the kind of ->, and this showed up:

$ ghci
...
Prelude> :k (->)
(->) :: ?? -> ? -> *
Prelude> 

Instead of the expected * -> * -> *.
What are the ?? and ? things? Do they mean concrete types or “kind variables”? Or something else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:57:08+00:00Added an answer on May 15, 2026 at 8:57 am

    These are GHC-specific extensions of the Haskell kind system. The Haskell 98 report specifies only a simple kind system:

    … type expressions are classified
    into different kinds, which take one
    of two possible forms:

    The symbol * represents the kind of
    all nullary type constructors. If k1
    and k2 are kinds, then k1->k2 is the
    kind of types that take a type of kind
    k1 and return a type of kind k2.

    GHC extends this system with a form of kind subtyping, to allow unboxed types, and to allow the function construtor to be polymorphic over kinds. The kind lattice GHC supports is:

                 ?
                 /\
                /  \
              ??   (#)
              / \     
             *   #     
    
    Where:       *   [LiftedTypeKind]   means boxed type
                 #   [UnliftedTypeKind] means unboxed type
                (#)  [UbxTupleKind]     means unboxed tuple
                ??   [ArgTypeKind]      is the lub of {*, #}
                ?    [OpenTypeKind]     means any type at all
    

    Defined in ghc/compiler/types/Type.lhs

    In particular:

    > error :: forall a:?. String -> a
    > (->)  :: ?? -> ? -> *
    > (\\(x::t) -> ...)
    

    Where in the last example t :: ?? (i.e. is not an unboxed tuple). So, to quote GHC, “there is a little subtyping at the kind level”.

    For interested souls, GHC also supports coercion types and kinds (“type-level terms which act as evidence for type equalities”, as needed by System Fc) used in GADTs, newtypes and type families.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Experimenting with Scala... I'm trying to define something analogous to the @ hack in
While experimenting a bit with C++ templates I managed to produce this simple code,
I'm experimenting with android terminal emulator( Terminal IDE ) and trying to compile an
Experimenting with Cocos2D collection detection and have some questions. First, some background: This is
It seems to me from my experimenting with Haskell, Erlang and Scheme that functional
Was experimenting with interface inheritance and found this: interface String{} interface Object{} interface Exception{}
In experimenting with this question I created an example that I utterly do not
I started experimenting with SVG and I'm not sure if this is something I'm
I'm experimenting with Haskell at the moment and am very much enjoying the experience,
I've started experimenting with Haskell and have a problem. qqq is a function that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.