THSH

[Index] [Quick Jump] Package maintainers For package maintainers and hackage trustees Candidates [!NOTE] This project is still work in progress. It has a working proof-of-concept (PoC), that was demonstrated at the MuniHac2024 event. THSH (Template Haskell SHell) is a "noDSL" approach to mixing shell scripting with Haskell programs using Template Haskell. The key goal of the project is to enable a gradual approach to adding strongly-typed Haskell code to enhance your shell scripting experience. It is gradual because you can wrap any shell script into a Template Haskell quasi-quotation with thsh: [!WARNING] The current PoC uses the PyF project's internal code to achieve parsing, which presents difficulty in choosing a better Haskell code delimiters other than "« ... »", for now. In the next version, a more palatable syntax should be achieved, e.g. "!{ ... }". You can pipe the entire outputs from a process to a Haskell function: ===> You can also process each line independently: ===> [!NOTE] More pre-defined function patter will be developed. The thsh quoted code can compose with each other: --> By default, the "thsh" loader uses the "cabal run" under the hood. That means that you can use cabal specific metadata sections for both package-level and project-level: You can find more examples available under the "examples" folder. We should note that there have been multiple projects allowing the mixing of Haskell code with shell scripting. All of them require their users to learn an eDSL of their own. Here is an incomplete list of these projects: By now, it should be evident to you that requiring minimum learning of a new eDSL, aka "noDSL" to be tongue-in-cheek, sets this project apart to offer a viable alternative to Haskell enthusiasts. Known Bugs and Limitations Features Maintainability DevX


Keywords
mit, program, system, Propose Tags, Skip to Readme, Index, Quick Jump, THSH, THSH.Fn, THSH.Funclet, THSH.QQ, THSH.Script, THSH-0.0.0.5.tar.gz, browse, Package description, Package maintainers, hellwolf, edit package information , MuniHac2024, "cabal run", hell, turtle, shelly, shh, HSH
License
MIT
Install
cabal install THSH-0.0.0.2