So, I have two types of union: JobStatus and TaskStatus .
module Data.Job exposing (..) type JobStatus = Submitted | Started | Finished
-
module Data.Task exposing (..) type TaskStatus = Created | Running | Finished
and I import them into the third module
module Home exposing (..) import Data.Job as Job exposing (JobStatus(..)) import Data.Task as Task exposing (TaskStatus(..)) type alias Model = { jobStatus : JobStatus , taskStatus : TaskStatus } model : Model model = { jobStatus = Finished , taskStatus = Finished }
But Finished too confusing, I want to write it as JobStatus.Finished or TaskStatus.Finished , how can I do this?
source share