AutoForms-0.5.0: GUI library based upon generic programming (SYB3)ContentsIndex
Graphics.UI.AF.General.CustomTypes
Description
Contain various types, which can be used in data types to get AutoForms specific behavior.
Synopsis
newtype AFFilePath = AFFilePath {
filePath :: String
}
newtype AFDirectoryPath = AFDirectoryPath {
directoryPath :: String
}
afOpenFile :: AFFilePath -> IOMode -> IO Handle
Documentation
newtype AFFilePath
Contains a file system pointer in form of a text string, just like FilePath. A new type were needed as FilePath is just a type synonym (for string). Otherwise, It would be impossible to behave in one way for strings and another for file paths.
Constructors
AFFilePath
filePath :: String
show/hide Instances
Eq AFFilePath
Read AFFilePath
Show AFFilePath
Typeable AFFilePath
ECCreator AFFilePath
(Data ctx String, Sat (ctx AFFilePath), Sat (ctx String)) => Data ctx AFFilePath
AutoForm action comH builder satCxt com => TypePresentation AFFilePath action comH builder satCxt com
newtype AFDirectoryPath
AutoForms directory path -type. A new type is needed for the same reason it was needed for AFFilePath.
Constructors
AFDirectoryPath
directoryPath :: String
show/hide Instances
Eq AFDirectoryPath
Read AFDirectoryPath
Show AFDirectoryPath
Typeable AFDirectoryPath
ECCreator AFDirectoryPath
(Data ctx String, Sat (ctx AFDirectoryPath), Sat (ctx String)) => Data ctx AFDirectoryPath
AutoForm action comH builder satCxt com => TypePresentation AFDirectoryPath action comH builder satCxt com
afOpenFile :: AFFilePath -> IOMode -> IO Handle
afOpenFil is the counterpart of IO.openFile, just using AFFilePath instead.
Produced by Haddock version 2.0.0.0