module Common ( WaspProjectDir , DotWaspDir , dotWaspDirInWaspProjectDir , dotWaspRootFileInWaspProjectDir , extCodeDirInWaspProjectDir , generatedCodeDirInDotWaspDir , waspSays ) where import qualified Path as P import StrongPath (Path, Rel, Dir, File) import qualified StrongPath as SP import ExternalCode (SourceExternalCodeDir) import qualified Generator.Common data WaspProjectDir -- Root dir of Wasp project, containing source files. data DotWaspDir -- Here we put everything that wasp generates. -- TODO: SHould this be renamed to include word "root"? dotWaspDirInWaspProjectDir :: Path (Rel WaspProjectDir) (Dir DotWaspDir) dotWaspDirInWaspProjectDir = SP.fromPathRelDir [P.reldir|.wasp|] -- TODO: Hm this has different name than it has in Generator. generatedCodeDirInDotWaspDir :: Path (Rel DotWaspDir) (Dir Generator.Common.ProjectRootDir) generatedCodeDirInDotWaspDir = SP.fromPathRelDir [P.reldir|out|] dotWaspRootFileInWaspProjectDir :: Path (Rel WaspProjectDir) File dotWaspRootFileInWaspProjectDir = SP.fromPathRelFile [P.relfile|.wasproot|] extCodeDirInWaspProjectDir :: Path (Rel WaspProjectDir) (Dir SourceExternalCodeDir) extCodeDirInWaspProjectDir = SP.fromPathRelDir [P.reldir|ext|] waspSays :: String -> IO () waspSays what = putStrLn $ "\ESC[33m{= Wasp =}\ESC[0m " ++ what -- Yellow