feat(third_party/bazel): Check in rules_haskell from Tweag
This commit is contained in:
parent
2eb1dc26e4
commit
f723b8b878
479 changed files with 51484 additions and 0 deletions
21
third_party/bazel/rules_haskell/tests/encoding/BUILD.bazel
vendored
Normal file
21
third_party/bazel/rules_haskell/tests/encoding/BUILD.bazel
vendored
Normal 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",
|
||||
],
|
||||
)
|
||||
8
third_party/bazel/rules_haskell/tests/encoding/Main.hs
vendored
Normal file
8
third_party/bazel/rules_haskell/tests/encoding/Main.hs
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Main (main) where
|
||||
|
||||
import TH
|
||||
|
||||
main :: IO ()
|
||||
main = putStrLn $foo
|
||||
7
third_party/bazel/rules_haskell/tests/encoding/TH.hs
vendored
Normal file
7
third_party/bazel/rules_haskell/tests/encoding/TH.hs
vendored
Normal 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
|
||||
1
third_party/bazel/rules_haskell/tests/encoding/unicode.txt
vendored
Normal file
1
third_party/bazel/rules_haskell/tests/encoding/unicode.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Некоторый текст на русском.
|
||||
Loading…
Add table
Add a link
Reference in a new issue