Skip to content

Instantly share code, notes, and snippets.

@thsutton
Created July 7, 2015 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thsutton/8d659fefc7f805774eea to your computer and use it in GitHub Desktop.
Save thsutton/8d659fefc7f805774eea to your computer and use it in GitHub Desktop.
HLint can't parse type application in a list
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Foo where
import GHC.TypeLits
data Header (sym :: Symbol) (val :: Symbol)
type Foo = '[Header "X-Forwarded-For" "Satan"]
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Foo where
import GHC.TypeLits
data Header (sym :: Symbol) (val :: Symbol)
type AHeader = Header "X-Forwarded-For" "Satan"
type Foo = '[AHeader]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment