File tree Expand file tree Collapse file tree
cabal-testsuite/PackageTests/MultiRepl/Utf8-文档 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ module Main (main ) where
2+
3+ import MyLib (mylib )
4+
5+ main :: IO ()
6+ main = print mylib
Original file line number Diff line number Diff line change 1+ module Main (main ) where
2+
3+ import MyLib (mylib )
4+
5+ main :: IO ()
6+ main = print (mylib + 1 )
Original file line number Diff line number Diff line change 1+ # cabal v2-repl
2+ Resolving dependencies...
3+ Build profile: -w ghc-<GHCVER> -O1
4+ In order, the following will be built:
5+ - foo-文档-0.1.0.0 (interactive) (lib) (first run)
6+ - foo-文档-0.1.0.0 (interactive) (exe:foo) (first run)
7+ - foo-文档-0.1.0.0 (interactive) (exe:bar) (first run)
8+ Configuring library for foo-文档-0.1.0.0...
9+ Preprocessing library for foo-文档-0.1.0.0...
10+ Configuring executable 'foo' for foo-文档-0.1.0.0...
11+ Preprocessing executable 'foo' for foo-文档-0.1.0.0...
12+ Configuring executable 'bar' for foo-文档-0.1.0.0...
13+ Preprocessing executable 'bar' for foo-文档-0.1.0.0...
Original file line number Diff line number Diff line change 1+ packages : .
Original file line number Diff line number Diff line change 1+ import Test.Cabal.Prelude
2+
3+ -- Test for issue #12573;
4+ -- If the test-directory or cabal file contain a utf-8 symbol (文档), the multi-repl shouldn't crash.
5+ main = do
6+ cabalTest' " all" $ do
7+ skipUnlessGhcVersion " >= 9.4"
8+ res <- cabalWithStdin " v2-repl" [" --enable-multi-repl" , " all" ] " print 0xdeadbeef"
9+ -- The multi-repl session is functional (0xdeadbeef = 3735928559)
10+ assertOutputContains " 3735928559" res
Original file line number Diff line number Diff line change 1+ cabal-version : 3.0
2+ name : foo-文档
3+ version : 0.1.0.0
4+ build-type : Simple
5+
6+ library
7+ default-language : Haskell2010
8+ hs-source-dirs : src
9+ exposed-modules : MyLib
10+ build-depends : base
11+
12+ executable foo
13+ default-language : Haskell2010
14+ hs-source-dirs : app
15+ main-is : Main.hs
16+ build-depends : base, foo-文档
17+
18+ executable bar
19+ default-language : Haskell2010
20+ hs-source-dirs : bar
21+ main-is : Main.hs
22+ build-depends : base, foo-文档
Original file line number Diff line number Diff line change 1+ module MyLib (mylib ) where
2+
3+ mylib :: Integer
4+ mylib = 0xdeadc0de
You can’t perform that action at this time.
0 commit comments