3 ms·
Are those types just aliases of String?
by TazeTSchnitzel 12y ago
Are those types just aliases of String?
- marcosdumay 12y agoWhat do you mean by "alias"? Path carries String-like information, it can even be easily converted to and from strings. Yet, it's a strong type that won't let you write something like 'path </> file_contents' (although, with overloaded strings, you can do 'path </> "file_name"'). UTCTime is not String-like.
- throwaway283719 12y agoNo. For example, a FilePath is (after resolving a few other type aliases) data Root = RootPosix | RootWindowsVolume Char | RootWindowsCurrentVolume data FilePath = FilePath { pathRoot :: Maybe Root , pathDirectories :: [String] , pathBasename :: Maybe String , pathExtensions :: [String] }