@@ -22,16 +22,13 @@ import Data.Foreign.Index ((!))
2222import Data.Intl.DateTimeFormat.Class (class FormatComponent, FormatComponentRecord(..), defaultComponentRecord)
2323import Data.Maybe (Maybe(..))
2424import Data.Newtype (class Newtype, over)
25−import Prelude (class Eq, class Show, bind, pure, show, ($), (<>), (>>=))
25+import Prelude (class Show, bind, pure, show, ($), (<>), (>>=))
2626
2727foreign import data Undefined :: Type
28−
2928foreign import undefined :: Undefined
3029
3130data StringRep = Narrow | Short | Long
3231
33−derive instance eqStringRep :: Eq StringRep
34−
3532instance showStringRep :: Show StringRep where
3633 show Narrow = "narrow"
3734 show Short = "short"
@@ -39,16 +36,12 @@ instance showStringRep :: Show StringRep where
3936
4037data NumericRep = Numeric | TwoDigit
4138
42−derive instance eqNumericRep :: Eq NumericRep
43−
4439instance showNumericRep :: Show NumericRep where
4540 show Numeric = "numeric"
4641 show TwoDigit = "2-digit"
4742
4843data MonthRep = MonthNumeric | MonthTwoDigit | MonthNarrow | MonthShort | MonthLong
4944
50−derive instance eqMonthRep :: Eq MonthRep
51−
5245instance showMonthRep :: Show MonthRep where
5346 show MonthNumeric = "numeric"
5447 show MonthTwoDigit = "2-digit"
@@ -58,8 +51,6 @@ instance showMonthRep :: Show MonthRep where
5851
5952data TimeZoneNameRep = TimeZoneNameShort | TimeZoneNameLong
6053
61−derive instance eqTimeZoneNameRep :: Eq TimeZoneNameRep
62−
6354instance showTimeZoneRep :: Show TimeZoneNameRep where
6455 show TimeZoneNameShort = "short"
6556 show TimeZoneNameLong = "long"
@@ -75,8 +66,6 @@ data FormatParts
7566 | DayPeriod String
7667 | Literal String
7768
78−derive instance eqFormatParts :: Eq FormatParts
79−
8069readFormatParts :: Foreign -> F FormatParts
8170readFormatParts val = do
8271 type_ <- val ! "type" >>= readString
@@ -111,8 +100,6 @@ newtype ResolvedOptions = ResolvedOptions
111100
112101derive instance newtypeResolvedOptions :: Newtype ResolvedOptions _
113102
114−derive instance eqResolvedOptions :: Eq ResolvedOptions
115−
116103newtype WeekdayYearMonthDayHourMinuteSecond = WeekdayYearMonthDayHourMinuteSecond
117104 { weekday :: StringRep
118105 , year :: NumericRep
@@ -125,8 +112,6 @@ newtype WeekdayYearMonthDayHourMinuteSecond = WeekdayYearMonthDayHourMinuteSecon
125112
126113derive instance newtypeWeekdayYearMonthDayHourMinuteSecond :: Newtype WeekdayYearMonthDayHourMinuteSecond _
127114
128−derive instance eqWeekdayYearMonthDayHourMinuteSecond :: Eq WeekdayYearMonthDayHourMinuteSecond
129−
130115instance formatComponentWeekdayYearMonthDayHourMinuteSecond :: FormatComponent WeekdayYearMonthDayHourMinuteSecond where
131116 formatComponent (WeekdayYearMonthDayHourMinuteSecond { weekday, year, month, day, hour, minute, second }) = over FormatComponentRecord
132117 (\r -> r { weekday = Just (show weekday)
@@ -148,8 +133,6 @@ newtype WeekdayYearMonthDay = WeekdayYearMonthDay
148133
149134derive instance newtypeWeekdayYearMonthDay :: Newtype WeekdayYearMonthDay _
150135
151−derive instance eqWeekdayYearMonthDay :: Eq WeekdayYearMonthDay
152−
153136instance formatComponentWeekdayYearMonthDay :: FormatComponent WeekdayYearMonthDay where
154137 formatComponent (WeekdayYearMonthDay { weekday, year, month, day }) = over FormatComponentRecord
155138 (\r -> r { weekday = Just (show weekday)
@@ -168,8 +151,6 @@ newtype YearMonthDay = YearMonthDay
168151
169152derive instance newtypeYearMonthDay :: Newtype YearMonthDay _
170153
171−derive instance eqYearMonthDay :: Eq YearMonthDay
172−
173154instance formatComponentYearMonthDay :: FormatComponent YearMonthDay where
174155 formatComponent (YearMonthDay { year, month, day }) = over FormatComponentRecord
175156 (\r -> r { year = Just (show year)
@@ -186,8 +167,6 @@ newtype YearMonth = YearMonth
186167
187168derive instance newtypeYearMonth :: Newtype YearMonth _
188169
189−derive instance eqYearMonth :: Eq YearMonth
190−
191170instance formatComponentYearMonth :: FormatComponent YearMonth where
192171 formatComponent (YearMonth { year, month }) = over FormatComponentRecord
193172 (\r -> r { year = Just (show year)
@@ -202,8 +181,6 @@ newtype MonthDay = MonthDay
202181
203182derive instance newtypeMonthDay :: Newtype MonthDay _
204183
205−derive instance eqMonthDay :: Eq MonthDay
206−
207184instance formatComponentMonthDay :: FormatComponent MonthDay where
208185 formatComponent (MonthDay { month, day }) = over FormatComponentRecord
209186 (\r -> r { month = Just (show month)
@@ -219,8 +196,6 @@ newtype HourMinuteSecond = HourMinuteSecond
219196
220197derive instance newtypeHourMinuteSecond :: Newtype HourMinuteSecond _
221198
222−derive instance eqHourMinuteSecond :: Eq HourMinuteSecond
223−
224199instance formatComponentHourMinuteSecond :: FormatComponent HourMinuteSecond where
225200 formatComponent (HourMinuteSecond { hour, minute, second }) = over FormatComponentRecord
226201 (\r -> r { hour = Just (show hour)
@@ -236,8 +211,6 @@ newtype HourMinute = HourMinute
236211
237212derive instance newtypeHourMinute :: Newtype HourMinute _
238213
239−derive instance eqHourMinute :: Eq HourMinute
240−
241214instance formatComponentHourMinute :: FormatComponent HourMinute where
242215 formatComponent (HourMinute { hour, minute }) = over FormatComponentRecord
243216 (\r -> r { hour = Just (show hour)