debug-0.1: Simple trace-based debugger

Safe HaskellNone
LanguageHaskell2010

Debug.Util

Contents

Description

Module containing functions required by test code. Not part of the public interface.

Synopsis

Documentation

prettyPrint :: (Data a, Ppr a) => a -> String 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