shellmet: Out of the shell solution for scripting in Haskell

[ command-line, library, mpl, shell ] [ Propose Tags ]

Shellmet provides easy and convenient way to call shell commands from Haskell programs

[Skip to Readme]


[Last Documentation]

  • Shellmet


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.0.0, 0.0.1,,,,,
Change log
Dependencies base (>= && <4.20), process (>=1.6.1 && <1.7), shellmet, text (>=1.2.3 && <2.1) [details]
License MPL-2.0
Copyright 2019-2022 Kowainik
Author Dmitrii Kovanikov
Maintainer Kowainik <>
Revised Revision 1 made by Bodigrim at 2023-08-16T21:11:13Z
Category Shell, Command Line
Home page
Bug tracker
Source repo head: git clone
Uploaded by vrom911 at 2022-06-14T12:46:25Z
Distributions Arch:, LTSHaskell:, NixOS:
Reverse Dependencies 4 direct, 1 indirect [details]
Executables readme
Downloads 3654 total (35 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2022-06-14 [all 2 reports]

Readme for shellmet-

[back to package description]


GitHub CI Hackage Stackage Lts Stackage Nightly MPL-2.0 license

Out of the shell solution for scripting in Haskell. Shellmet provides an easy and convenient way to call shell commands from Haskell programs.

Usage example

This README contains the usage example of the shellmet library. The example is runnable. You can build and execute with the following command:

cabal run readme

Setting up

Since this tutorial is written using Literate Haskell, first, let's write all necessary pragmas and imports.

{-# LANGUAGE OverloadedStrings #-}

import Data.Semigroup ((<>))

import Shellmet (($|))

import qualified Data.Text as T

Simple scripting example

Below you can see how easy it is to interact with shell commands in Haskell:

main :: IO ()
main = do
    "echo" ["Starting shellmet readme..."]
    text <- "cat" $| [""]
    let cnt = T.pack $ show $ length $ T.lines text
    "echo" ["Number of lines in this README: " <> cnt]

And the output is:

⚙  echo 'Starting shellmet readme...'
Starting shellmet readme...
⚙  echo 'Number of lines in this README: 54'
Number of lines in this README: 54