mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 21:02:13 +03:00
Add NominalDiffTime
(#168)
This commit is contained in:
parent
45c4905783
commit
d9aef376e2
17
front-ps/src/Data/Time/NominalDiffTime.purs
Normal file
17
front-ps/src/Data/Time/NominalDiffTime.purs
Normal file
@ -0,0 +1,17 @@
|
||||
module Data.Time.NominalDiffTime
|
||||
( NominalDiffTime (..)
|
||||
) where
|
||||
|
||||
import Prelude
|
||||
import Data.Generic (class Generic, gShow)
|
||||
import Data.Newtype (class Newtype)
|
||||
import Data.Time.Duration (Seconds)
|
||||
|
||||
newtype NominalDiffTime = NominalDiffTime Seconds
|
||||
|
||||
derive instance ntNominalDiffTime :: Newtype NominalDiffTime _
|
||||
derive instance gNominalDiffTime :: Generic NominalDiffTime
|
||||
derive instance eqNominalDiffTime :: Eq NominalDiffTime
|
||||
derive instance ordNominalDiffTime :: Ord NominalDiffTime
|
||||
instance showNominalDiffTime :: Show NominalDiffTime where
|
||||
show = gShow
|
Loading…
Reference in New Issue
Block a user