Safe Haskell | None |
---|---|
Language | Haskell2010 |
Debug.Util
Contents
Description
Module containing functions required by test code. Not part of the public interface.
- hasRankNTypes :: Type -> Bool
- prettyPrint :: (Data a, Ppr a) => a -> String
- mkLegalInfixVar :: String -> String
- removeLet :: String -> String
- removeExtraDigits :: String -> String
Documentation
hasRankNTypes :: Type -> Bool Source #
Exported for tests only
mkLegalInfixVar :: String -> String Source #
Trsansform infix operator into a valid variable name | For example "++"" ---> "plus_plus" | This transformed variable is not visible in the UI
removeLet :: String -> String Source #
Discover the function name inside (possibly nested) let expressions Transform strings of the form "let (var tag "f" -> f) = f x in f_1" into "f"
removeExtraDigits :: String -> String Source #
Remove possible _n suffix from discovered function names