cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityNon-Portable (Cookbook, Strict, Environment)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Essential.IO

Description

Library for completing common IO tasks, integrating with files and UNIX functions.

Synopsis

Documentation

filelines :: String -> IO [String] Source #

Return the lines of a file as a list of Strings.

prompt :: String -> IO String Source #

Prompts the user for keyboard input

inhome :: String -> IOMode -> IO Handle Source #

Returns the path of a file in the user's home directory.

filename :: String -> String Source #

Pure. Returns the file name with the directory truncated.

modulename :: String -> String Source #

Pure. Returns the module name. That is, path to the file with the file cut off.