feat(third_party/bazel): Check in rules_haskell from Tweag

This commit is contained in:
Vincent Ambo 2019-07-04 11:18:12 +01:00
parent 2eb1dc26e4
commit f723b8b878
479 changed files with 51484 additions and 0 deletions

View file

@ -0,0 +1,21 @@
load(
"@io_tweag_rules_haskell//haskell:haskell.bzl",
"haskell_test",
)
package(default_testonly = 1)
haskell_test(
name = "encoding",
srcs = [
"Main.hs",
"TH.hs",
],
extra_srcs = [
"unicode.txt",
],
deps = [
"//tests/hackage:base",
"//tests/hackage:template-haskell",
],
)

View file

@ -0,0 +1,8 @@
{-# LANGUAGE TemplateHaskell #-}
module Main (main) where
import TH
main :: IO ()
main = putStrLn $foo

View file

@ -0,0 +1,7 @@
module TH (foo) where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax (lift)
foo :: Q Exp
foo = runIO (readFile "tests/encoding/unicode.txt") >>= lift

View file

@ -0,0 +1 @@
Некоторый текст на русском.