homepage: https://github.com/tweag/rules_haskell#readme
changelog-type: ''
hash: 6755cdb54e0dca6c5175e19000a907f81a8974d152e41c04a00ee38a550469bf
test-bench-deps: {}
maintainer: m@tweag.io
synopsis: Locate Bazel runfiles location
changelog: ''
basic-deps:
  base: ! '>=4.7 && <5'
  filepath: -any
  bazel-runfiles: -any
  directory: -any
all-versions:
- '0.7.0.0'
author: Tweag I/O Limited
latest: '0.7.0.0'
description-type: markdown
description: ! "# Bazel Runfiles\n\nThis is a small utility to enable discovery of
  the Bazel runfiles location. This is useful in tests for example.\n\n```haskell\nmodule
  Main (main) where\n\nimport qualified Bazel.Runfiles as Runfiles\nimport Control.Monad
  (when)\nimport System.Process (callProcess)\n\nmain :: IO ()\nmain = do\n    r <-
  Runfiles.create\n    foo <- readFile (Runfiles.rlocation r \"io_tweag_rules_haskell/tools/runfiles/test-data.txt\")\n
  \   when (lines foo /= [\"foo\"]) -- ignore trailing newline\n        $ error $
  \"Incorrect contents: got: \" ++ show foo\n    callProcess (Runfiles.rlocation r
  \"io_tweag_rules_haskell/tools/runfiles/bin\") []\n```\n"
license-name: Apache-2.0

Update from Hackage at 2018-11-02T11:00:59Z
Update from Hackage at 2018-11-02T11:00:59Z
