antlr-haskell-0.1.0.0: A Haskell implementation of the ANTLR top-down parser generator

Copyright(c) Karl Cronburg 2018
LicenseBSD3
Maintainerkarl@cs.tufts.edu
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Language.ANTLR4.FileOpener

Contents

Description

Just do the following. It'll make sense:

   foo = id
   file_contents = [open| test/file.foo |]
 
Synopsis

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.