Maintainer | hapytexeu+gh@gmail.com |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Unicode has two types of emoji for the moon: it contains eight emoji for the moonphase, and four emoji where the moon has a face.
Synopsis
Moon phase emoji
A data type that defines the eight different moon phases, and is an
instance of UnicodeCharacter
to convert these to the corresponding Unicode
character.
NewMoon | The new moon, the first phase of the moon represented by 🌑. |
WaxingCrescent | The waxing crescent, the second phase of the moon represented by 🌒. |
FirstQuarter | The first quarter, the third phase of the moon represented by 🌓. |
WaxingGibbous | The waxing gibbous, the fourth phase of the moon represented by 🌔. |
FullMoon | The full moon, the fifth phase of the moon represented by 🌕. |
WaningGibbous | The waning gibbous, the sixth phase of the moon represented by 🌖. |
ThirdQuarter | The third quarter, the seventh phase of the moon represented by 🌗. |
WaningCrescent | The waning crescent, the eighth phase of the moon represented by 🌘. |
Instances
Moon faces emoji
A data type that defines the four different moon faces (not to be confused with
phases). This data type is an instance of the UnicodeCharacter
type class
to convert these to the corresponding Unicode character.
NewMoonFace | The new moon, the first phase of the moon faces represented by 🌚. |
FirstQuarterFace | The first quarter, the second phase of the moon faces represented by 🌛. |
FullMoonFace | The full moon, the third phase of the moon faces represented by 🌝. |
ThirdQuarterFace | The third quarter, the fourth phase of the moon faces represented by 🌜. |
Instances
Arbitrary MoonFace Source # | |
Data MoonFace Source # | |
Defined in Data.Char.Emoji.Moon gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MoonFace -> c MoonFace # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MoonFace # toConstr :: MoonFace -> Constr # dataTypeOf :: MoonFace -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MoonFace) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MoonFace) # gmapT :: (forall b. Data b => b -> b) -> MoonFace -> MoonFace # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MoonFace -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MoonFace -> r # gmapQ :: (forall d. Data d => d -> u) -> MoonFace -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MoonFace -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MoonFace -> m MoonFace # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MoonFace -> m MoonFace # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MoonFace -> m MoonFace # | |
Bounded MoonFace Source # | |
Enum MoonFace Source # | |
Generic MoonFace Source # | |
Read MoonFace Source # | |
Show MoonFace Source # | |
NFData MoonFace Source # | |
Defined in Data.Char.Emoji.Moon | |
Eq MoonFace Source # | |
Ord MoonFace Source # | |
Defined in Data.Char.Emoji.Moon | |
Hashable MoonFace Source # | |
Defined in Data.Char.Emoji.Moon | |
MirrorVertical MoonFace Source # | |
Defined in Data.Char.Emoji.Moon mirrorVertical :: MoonFace -> MoonFace Source # | |
UnicodeCharacter MoonFace Source # | |
Defined in Data.Char.Emoji.Moon | |
UnicodeText MoonFace Source # | |
Defined in Data.Char.Emoji.Moon | |
type Rep MoonFace Source # | |
Defined in Data.Char.Emoji.Moon type Rep MoonFace = D1 ('MetaData "MoonFace" "Data.Char.Emoji.Moon" "unicode-tricks-0.14.0.0-5FhLRVYZEl8B73yRmH9riY" 'False) ((C1 ('MetaCons "NewMoonFace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FirstQuarterFace" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FullMoonFace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ThirdQuarterFace" 'PrefixI 'False) (U1 :: Type -> Type))) |
:: Day | The |
-> MoonPhase | The corresponding |
Determine the corresponding MoonPhase emoji for a given day. The algorithm is based on upon a subsystems publication https://www.subsystems.us/uploads/9/8/9/4/98948044/moonphase.pdf