Skip to content

test-framework-th does not respect comments #3

@sol

Description

@sol

This works:

{-# LANGUAGE TemplateHaskell #-}
module ResponseTest where

import Test.Framework.TH
import Test.Framework.Providers.QuickCheck2

main = $(defaultMainGenerator)

prop_reverse xs = reverse (reverse xs) == xs
  where types = xs::[Int]

But the following does not:

{-# LANGUAGE TemplateHaskell #-}
module ResponseTest where

import Test.Framework.TH
import Test.Framework.Providers.QuickCheck2

main = $(defaultMainGenerator)

prop_reverse xs = reverse (reverse xs) == xs
  where types = xs::[Int]

{-
prop_foo = foo
 -}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions