Hoogle Search
Within LTS Haskell 24.19 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
domain Domain Derives Show. Requires to have the StandaloneDeriving compiler extension enabled.
showE :: String -> Maybe Stringend-of-exe EndOfExe2 Gets the proper name of the executable in the system (it must be seen in the directories in the PATH variable). Further you can adopt it to be used inside the callCommand as the name of the executable
-
end-of-exe EndOfExe2 If executable not found, then returns empty String.
-
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)"