file-command-qq alternatives and similar packages
Based on the "System" category.
Alternatively, view file-command-qq alternatives based on common mentions on social networks and blogs.
-
ghc-hotswap
DISCONTINUED. Example code for how we swap compiled code within a running Haskell process. -
plugins
Dynamic linking and runtime evaluation of Haskell, and C, including dependency chasing and package resolution. -
ascii-progress
A simple Haskell progress bar for the console. Heavily borrows from TJ Holowaychuk's Node.JS project -
language-puppet
A library to work with Puppet manifests, test them and eventually replace everything ruby.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of file-command-qq or a related project?
README
file-command-qq is a simple quasiquoter for running system commands that take a filepath as an argument.
For instance
> :set -XOverloadedStrings
> import FileCommand
> import Filesystem.Path
> [s|echo $filename|] "/home/test/thing.txt"
will return
thing.txt
ExitSuccess
You can think of [s|echo $filename|]
essentially converts into
\path -> system $ "echo" ++ encodeString (filename path)
All "file parts" start with a '$'. The '$' can be escaped by preceding it with a '\'
There are the following options for "file parts"
- $path
- $root
- $directory
- $parent
- $filename
- $dirname
- $basename
- $ext
Which correspond to the respective functions in https://hackage.haskell.org/package/system-filepath-0.4.6/docs/Filesystem-Path.html#g:1