{-# LANGUAGE UndecidableInstances #-} module IHP.Welcome.Controller where import IHP.ControllerPrelude import IHP.RouterPrelude import IHP.ViewPrelude data WelcomeController = WelcomeAction deriving (Eq, Show, Data) instance CanRoute WelcomeController where parseRoute' = (string "/" <|> string "") *> endOfInput $> WelcomeAction instance HasPath WelcomeController where pathTo WelcomeAction = "/" instance Controller WelcomeController where action WelcomeAction = respondHtml (renderLayout view) view :: Html view = [hsx|
Your new application is up and running.
Learn the Next Steps in the DocumentationYou can change this start page by updating 'startPage WelcomeAction' in 'Web/FrontController.hs'.