This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Control.Monad.Trans.Resource | |
| import Control.Monad.IO.Class | |
| import System.IO | |
| main :: IO () | |
| main = runResourceT $ do | |
| (_, a) <- allocate (openFile "a.txt" ReadMode) hClose | |
| (_, b) <- allocate (openFile "b.txt" ReadMode) hClose | |
| aContents <- liftIO $ hGetContents a | |
| bContents <- liftIO $ hGetContents b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Control.Monad.Managed.Safe | |
| import Control.Monad.IO.Class | |
| import System.IO | |
| main :: IO () | |
| main = runManaged $ do | |
| a <- managed $ withFile "a.txt" ReadMode | |
| b <- managed $ withFile "b.txt" ReadMode | |
| aContents <- liftIO $ hGetContents a | |
| bContents <- liftIO $ hGetContents b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Control.Monad.State.Strict | |
| import Control.Monad.ST | |
| import Debug.Trace (trace) | |
| data S = S { property :: String } | |
| main :: IO () | |
| main = flip evalStateT S { property = trace "read 0" "state 0" } $ do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "//daml-assistant/scala-daml-project-config:scala-daml-project-config-tests_1": "//daml-assistant/scala-daml-project-config:scala-daml-project-config-tests_test_suite_src_test_scala_com_digitalasset_assistant_ProjectConfigSpec.scala", | |
| "//daml-lf/archive:daml_lf_archive_reader_tests_1": "//daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_ProtoTest.scala", | |
| "//daml-lf/archive:daml_lf_archive_reader_tests_2": "//daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_archive_DarManifestReaderTest.scala", | |
| "//daml-lf/archive:daml_lf_archive_reader_tests_3": "//daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_archive_DarReaderTest.scala", | |
| "//daml-lf/archive:daml_lf_archive_reader_tests_4": "//daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_archive_DarSpec.scala", | |
| "//daml-lf/archive:daml_lf_archive_reader_tests_5": "//daml-l |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ghc_wrapper.exe" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/tools/runfiles/compile_flags_runfiles_HaskellBuildLibrary" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/tools/runfiles/extra_args_runfiles_HaskellBuildLibrary" | |
| environment_variables { | |
| name: "LANG" | |
| value: "C.UTF-8" | |
| } | |
| platform { | |
| } | |
| inputs { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [...] | |
| --------------------------------------------------------- | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ghc_wrapper.exe" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/tools/runfiles/compile_flags_runfiles_HaskellBuildLibrary" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/tools/runfiles/extra_args_runfiles_HaskellBuildLibrary" | |
| environment_variables { | |
| name: "LANG" | |
| value: "C.UTF-8" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe" | |
| command_args: "cC" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip" | |
| command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params" | |
| environment_variables { | |
| name: "JAVA_HOME" | |
| value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current" | |
| } | |
| environment_variables { | |
| name: "PATH" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe" | |
| command_args: "cC" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip" | |
| command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params" | |
| environment_variables { | |
| name: "JAVA_HOME" | |
| value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current" | |
| } | |
| environment_variables { | |
| name: "PATH" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe" | |
| command_args: "cC" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip" | |
| command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params" | |
| environment_variables { | |
| name: "JAVA_HOME" | |
| value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current" | |
| } | |
| environment_variables { | |
| name: "PATH" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe" | |
| command_args: "cC" | |
| command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip" | |
| command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params" | |
| environment_variables { | |
| name: "JAVA_HOME" | |
| value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current" | |
| } | |
| environment_variables { | |
| name: "PATH" |
NewerOlder