Codewars/codewars-runner — pull request #109 by xcthulhu (2014-09-07 16:44:57+00:00)
Title: Haskell Function/Module Blacklisting

Introducing support for hiding functions in Haskell kata.

Usage:

#### Solution Code ####
```haskell
module CodeWars.Solution where
import Prelude hiding (reverse)
reverse :: [a] -> [a]
reverse = foldl (flip (:)) []
```

#### Fixture Code ####
```haskell
import Test.Hspec
import CodeWars.Solution as Solution

main :: IO ()
main = hspec $ do
describe "Testing that the solution does not import anything disallowed" $ do
it "Solution did not import Data.List, Data.Text and Prelude.reverse" $ do
hidden [Module "Data.List", Module "Data.Text", FromModule "Prelude" "reverse"]
describe "Solution.reverse reverses a thing" $ do',
it "Solution.reverse is functionally the same as Prelude.reverse" $ do
let testInput = [1..10]
Solution.reverse testInput `shouldBe` reverse testInput
```