-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Generate scaffold for cabal project -- -- This application generates a scaffold for Haskell project from a Git -- repository. -- -- This command -- --
-- $ hi --package-name "foo-bar-baz" --module-name "Foo.Bar.Baz" --author "Fujimura Daisuke" --email "me@fujimuradaisuke.com" ---- -- will generate: -- --
-- $ tree . -- . -- ├── LICENSE -- ├── README.md -- ├── foo-bar-baz.cabal -- ├── src -- │ └── Foo -- │ └── Bar -- │ ├── Baz -- │ │ └── Internal.hs -- │ └── Baz.hs -- └── test -- ├── Foo -- │ └── Bar -- │ ├── Baz -- │ └── BazSpec.hs -- └── Spec.hs ---- -- See https://github.com/fujimura/hi for further usage. @package hi @version 0.0.2 module Distribution.Hi.Version version :: String module Distribution.Hi.Directory -- | Run callback in given directory. inDirectory :: FilePath -> (IO a -> IO a) -- | Run callback in a temporary directory. inTemporaryDirectory :: String -> (IO a -> IO a) module Distribution.Hi.Template -- | Run callback with list of template files. withTemplatesFromRepo :: String -> ([FilePath] -> IO a) -> IO a -- | Remove ".template" from FilePath untemplate :: FilePath -> FilePath module Distribution.Hi.Types type Flag = String data InitFlags InitFlags :: !Flag -> !Flag -> !Flag -> !Flag -> !Flag -> !Flag -> InitFlags packageName :: InitFlags -> !Flag moduleName :: InitFlags -> !Flag author :: InitFlags -> !Flag email :: InitFlags -> !Flag repository :: InitFlags -> !Flag year :: InitFlags -> !Flag type Label = String -- | Arguments. data Arg Version :: Arg NoConfigurationFile :: Arg Val :: Label -> String -> Arg -- | Run mode. data Mode ShowVersion :: Mode Run :: Mode RunWithNoConfigurationFile :: Mode instance Eq InitFlags instance Show InitFlags instance Eq Arg instance Show Arg instance Eq Mode instance Show Mode module Distribution.Hi.Config parseConfig :: String -> IO [Arg] module Distribution.Hi.Flag -- | Extract InitFlags from a list of Arg extractInitFlags :: [Arg] -> InitFlags module Distribution.Hi.Option -- | Returns InitFlags. getInitFlags :: IO InitFlags -- | Returns Mode. getMode :: IO Mode module Distribution.Hi.Context -- | Create a Context from 'InitFlags Will raise error if the key -- was not found. context :: InitFlags -> Context module Distribution.Hi.FilePath -- | Convert given path to the destination path, with given options. toDestionationPath :: InitFlags -> FilePath -> FilePath -- | Convert module name to path toDir Foo.bar # => -- Foo/Bar toDir :: String -> String module Distribution.Hi.Compiler -- | Compile a file from template with given Context. compile :: FilePath -> FilePath -> Context -> IO () module Distribution.Hi -- | Main function cli :: InitFlags -> IO ()