h,T     1.0.0None 3 Minimalistic console UI (getLine), arrow key support (edit, browse cmd history).(c) dr. Jonas Birch, 2024MIT%dr. Jonas Birch stablePOSIXNone 3TermRes is the result of the input. Returned whenever the user presses a key.;Returns the numeric value on each key press (except enter).1Returns the line of data when user presses enter.*Term is the internal state of the library. Line is the datatype of the returned text string when the user presses enter. This type can easily be changed from the default (String) to Text or anything else. Change it in the type alias and it will be used everywhere.init initial_promptInitializes the terminal. Returns a handle which you pass on to the input function.input handleReads one character from the keyboard. You give it the handle from the last function call. It returns the string when pressed enter and returns the key code otherwise.Example: > > import qualified Data.UI (init, input) > import Data.UI (TermRes(..)) > > example :: IO () > example = do > t <- Data.UI.init "prompt> " > go t > where > go t' = do > (res,newstate) <- Data.UI.input t' > case res of > TLine x -> do > _ <- putStrLn $ "\nResult: '" <> x <> "'" > go newstate > _ -> go newstate >       !      !"#$%&'ui-1.0.0-inplaceData.UIui Data.Util4TermResTKeyTLineTermpromptposlenbufloglenlogposlog initializedLineinitinput $fShowTermRes $fShowArrow $fShowTerm><betwfilter3inject lowercasenext5nextnreplacesplitatvnew§§:§=vector-0.13.2.0-4eaecbbb10b2b067aaa5f2d1e4eb4f44c392653adbfd405fb89178030a479b15 Data.VectorVector