Copyright | (c) Karl Cronburg 2018 |
---|---|
License | BSD3 |
Maintainer | karl@cs.tufts.edu |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Just do the following. It'll make sense:
foo = id file_contents = [open| test/file.foo |]
Synopsis
- open :: QuasiQuoter
File opening quasiquoter
open :: QuasiQuoter Source #
A quasiquoter for opening a file on disk, reading its contents, and running a function by the same name as the file extension. e.g.:
foo = id file_contents = [open| test/file.foo |]
foo
gets called on the contents of files with the extension .foo
.