HomeInterface: module can be compiled, nothing to render yet.

This commit is contained in:
Philippe Pittoli 2023-07-15 13:56:32 +02:00
parent e172a41f2d
commit eb780fc5ce

View File

@ -1,25 +1,23 @@
-- | `App.HomeInterface` presents the website and its features. -- | `App.HomeInterface` presents the website and its features.
module App.HomeInterface where module App.HomeInterface where
import Prelude (Unit, unit, bind, discard, pure, ($), (<<<), (<>), Void) import Prelude (Unit, pure, unit, ($))
-- import Data.Either (Either(..))
import Data.ArrayBuffer.Types (ArrayBuffer) -- import Data.Maybe (Maybe(..), maybe)
import Data.Either (Either(..)) -- import Data.Tuple (Tuple(..))
import Data.Maybe (Maybe(..), maybe)
import Data.Tuple (Tuple(..))
import Effect.Aff.Class (class MonadAff) import Effect.Aff.Class (class MonadAff)
import Halogen as H import Halogen as H
import Halogen.HTML as HH -- import Halogen.HTML as HH
import Halogen.HTML.Events as HE -- import Halogen.HTML.Events as HE
import Halogen.HTML.Properties as HP -- import Halogen.HTML.Properties as HP
import Bulma as Bulma import Bulma as Bulma
data Query a = Noop a data Query a = DoNothing a
type Output = Unit type Slot = H.Slot Query Unit
type Slot = H.Slot Query Output
type Input = Unit type Input = Unit
type Output = Unit
type Action = Unit type Action = Unit
type State = Unit type State = Unit
@ -28,13 +26,15 @@ component =
H.mkComponent H.mkComponent
{ initialState { initialState
, render , render
, eval: H.mkEval $ H.defaultEval { handleQuery: handleQuery } , eval: H.mkEval $ H.defaultEval
{ handleAction = handleAction
}
} }
handleQuery = case _ of handleAction :: forall m. MonadAff m => Action -> H.HalogenM State Action () Output m Unit
Noop a -> pure a handleAction _ = pure unit
initialState :: Input -> State initialState :: forall input. input -> State
initialState _ = unit initialState _ = unit
render :: forall m. State -> H.ComponentHTML Action () m render :: forall m. State -> H.ComponentHTML Action () m