к
Size: a a a
к
RS
type MedType
= Poly
| Stomat
| Home
е
го вtype ProgrammContent
= ProgrammContent MedType (Maybe Int)
type alias ProgrammContent =
{ medType : MedType
, medInfo : Maybe Int
}
ZK
type ProgrammContent = ProgrammContent
{ medType : MedType
, medInfo : Maybe Int
}
ZK
к
ZK
module Temp exposing (ProgrammContent)
type ProgrammContent = ProgrammContent
{ medType : MedType
, medInfo : Maybe Int
}
ZK
ProgrammContent
, про который ничего неизвестно кроме названия типаAP
AP
module Temp exposing (ProgrammContent)
прячет ещё и конструкторAP
module M exposing (T(someGetter,SomeConstructor(..))
и всякое такоеZK
ZK
AP
ZK
module Temp exposing (ProgrammContent, getMedType)
type ProgrammContent = ProgrammContent
{ medType : MedType
, medInfo : Maybe Int
}
getMedType : ProgrammContent -> MedType
getMedType (ProgrammContent p) = .medType p
AP
ZK
ZK
AP
AP