HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Package1.6.2System

turtle

Shell programming, Haskell-style

Modules

9 modules
  • Turtle59See Turtle.Tutorial to learn how to use this library or Turtle.Prelude
  • Turtle.Bytes32This module provides ByteString analogs of several utilities in
  • Turtle.Format19Minimalist implementation of type-safe formatted strings, borrowing heavily
  • Turtle.Line7
  • Turtle.Options27Example usage of this module: -- options.hs
  • Turtle.Pattern52Use this module to either: match Text with light-weight backtracking patterns, or: parse structured values from Text. Example usage: :se…
  • Turtle.Prelude177This module provides a large suite of utilities that resemble Unix
  • Turtle.Shell14You can think of Shell as [] + IO + Managed. In fact, you can embed
  • Turtle.Tutorial0Use turtle if you want to write light-weight and maintainable shell

Description

turtle is a reimplementation of the Unix command line environment in Haskell so that you can use Haskell as both a shell and a scripting language.

Features include:

Batteries included: Command an extended suite of predefined utilities Interoperability: You can still run external shell commands Portability: Works on Windows, OS X, and Linux Exception safety: Safely acquire and release resources Streaming: Transform or fold command output in constant space Patterns: Use typed regular expressions that can parse structured values Formatting: Type-safe printf-style text formatting Modern: Supports text

Read Turtle.Tutorial for a detailed tutorial or Turtle.Prelude for a quick-start guide

turtle is designed to be beginner-friendly, but as a result lacks certain features, like tracing commands. If you feel comfortable using turtle then you should also check out the Shelly library which provides similar functionality.

Depends on

23 packages

Used by in this set · 0

Nothing in this set depends on it.