Hoogle Search
Within LTS Haskell 24.42 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
end-of-exe EndOfExe2 If executable not found, then returns empty String. Uses unsafeDupablePerformIO.
showEDup :: String -> Maybe Stringend-of-exe EndOfExe2 Similar to showE but uses unsafeDupablePerformIO, which is more efficient, but for the multiprocessor can lead to executing the IO action multiple times.
-
express Data.Express O(n). Returns a string representation of an expression. Differently from show (:: Expr -> String) this function does not include the type in the output.
> putStrLn $ showExpr (one -+- two) 1 + 2
> putStrLn $ showExpr $ (pp -||- true) -&&- (qq -||- false) (p || True) && (q || False)
showOpExpr :: String -> Expr -> Stringexpress Data.Express O(n). Like showPrecExpr but the precedence is taken from the given operator name.
> showOpExpr "*" (two -*- three) "(2 * 3)"
> showOpExpr "+" (two -*- three) "2 * 3"
To imply that the surrounding environment is a function application, use " " as the given operator.> showOpExpr " " (two -*- three) "(2 * 3)"
showPrecExpr :: Int -> Expr -> Stringexpress Data.Express O(n). Like showExpr but allows specifying the surrounding precedence.
> showPrecExpr 6 (one -+- two) "1 + 2"
> showPrecExpr 7 (one -+- two) "(1 + 2)"
-
express Data.Express.Core O(n). Returns a string representation of an expression. Differently from show (:: Expr -> String) this function does not include the type in the output.
> putStrLn $ showExpr (one -+- two) 1 + 2
> putStrLn $ showExpr $ (pp -||- true) -&&- (qq -||- false) (p || True) && (q || False)
showOpExpr :: String -> Expr -> Stringexpress Data.Express.Core O(n). Like showPrecExpr but the precedence is taken from the given operator name.
> showOpExpr "*" (two -*- three) "(2 * 3)"
> showOpExpr "+" (two -*- three) "2 * 3"
To imply that the surrounding environment is a function application, use " " as the given operator.> showOpExpr " " (two -*- three) "(2 * 3)"
showPrecExpr :: Int -> Expr -> Stringexpress Data.Express.Core O(n). Like showExpr but allows specifying the surrounding precedence.
> showPrecExpr 6 (one -+- two) "1 + 2"
> showPrecExpr 7 (one -+- two) "(1 + 2)"
showJustName :: Name -> Stringexpress Data.Express.Utils.TH Encodes a Name as a String. This is useful when generating error messages.
> showJustName ''Int "Int"
> showJustName ''String "String"
> showJustName ''Maybe "Maybe"
showLinkAttr :: LinkRelation -> String -> Stringfeed Text.Atom.Feed.Link No documentation available.