Hi I am getting this message in VSC when looking at the Main.hs file and I wonder if somebody could explain to me what that’s about and if I can fix it in any way.
• Could not deduce (FrontController WebApplication)
arising from a use of ‘mountFrontController’
from the context: (?applicationContext::IHP.ApplicationContext.ApplicationContext,
?application::RootApplication,
?context::IHP.Controller.RequestContext.RequestContext)
bound by the type signature for:
controllers :: (?applicationContext::IHP.ApplicationContext.ApplicationContext,
?application::RootApplication,
?context::IHP.Controller.RequestContext.RequestContext) =>
[RouteParser]
at /Users/gieseke/Code/IHP/blog/Main.hs:13:3-13
• In the expression: mountFrontController WebApplication
In the expression: [mountFrontController WebApplication]
In an equation for ‘controllers’:
controllers = [mountFrontController WebApplication]
I didn’t really touch Main.hs after generating the example IHP blog:
module Main where
import Config
import IHP.FrameworkConfig
import IHP.Job.Types
import IHP.Prelude
import IHP.RouterSupport
import IHP.Server qualified
import Web.FrontController
import Web.Types
instance FrontController RootApplication where
controllers =
[ mountFrontController WebApplication
]
instance Worker RootApplication where
workers _ = []
main :: IO ()
main = IHP.Server.run config
Any help is greatly appreciated.