blob: 295ac59dbbdffc570b164a794fd33fc58c207fc3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
module Bug574 where
-- See https://github.com/haskell/haddock/issues/574
-- | Somthing with a spliced type
foo :: Int -> $(let i = [t| Int |] in [t| $i -> $i |])
foo x y = x + y
|