Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
PathSegment :: Text -> PathSegmentservant-foreign Servant.Foreign.Internal No documentation available.
module Shell.Utility.
ParseArgument Both System.Console.GetOpt and Optparse.Applicative do not have built-in support for number or enumeration arguments. But there is usually a lot to check, e.g. whether numbers are positive, not too big, etc. We provide argument parsers here in a way that can be used in all command-line parsing libraries.
-
shelly Shelly No documentation available.
-
This module is a wrapper for the module Shelly. The only difference is a main type Sh. In this module Sh contains a list of results. Actual definition of the type Sh is:
import qualified Shelly as S newtype Sh a = Sh { unSh :: S.Sh [a] }This definition can simplify some filesystem commands. A monad bind operator becomes a pipe operator and we can writefindExt ext = findWhen (pure . hasExt ext) main :: IO () main = shs $ do mkdir "new" findExt "hs" "." >>= flip cp "new" findExt "cpp" "." >>= rm_f liftIO $ putStrLn "done"
Documentation in this module mostly just reference documentation from the main Shelly module.{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExtendedDefaultRules #-} {-# OPTIONS_GHC -fno-warn-type-defaults #-} import Shelly import Data.Text as T default (T.Text) -
show-combinators Text.Show.Combinators Type of strings representing expressions, parameterized by the surrounding precedence level. This is the return type of flip showsPrec.
-
No documentation available.
-
store Data.Store Peek actions are useful for building sequential deserializers. They are actions which read from memory and construct values from it. The Applicative and Monad instances make it easy to chain these together to get more complicated deserializers. This machinery keeps track of the current Ptr and end-of-buffer Ptr.
-
store Data.Store Exception thrown while running peek. Note that other types of exceptions can also be thrown. Invocations of fail in the Poke monad causes this exception to be thrown. PeekException is thrown when the data being decoded is invalid.
PeekException :: Offset -> Text -> PeekExceptionstore Data.Store No documentation available.
-
store Data.Store Poke actions are useful for building sequential serializers. They are actions which write values to bytes into memory specified by a Ptr base. The Applicative and Monad instances make it easy to write serializations, by keeping track of the Offset of the current byte. They allow you to chain Poke action such that subsequent Pokes write into subsequent portions of the output.