@@ -168,7 +168,7 @@ data HieType a
168
168
type HieTypeFlat = HieType TypeIndex
169
169
170
170
-- | Roughly isomorphic to the original core 'Type'.
171
- newtype HieTypeFix = Roll (HieType ( HieTypeFix ) )
171
+ newtype HieTypeFix = Roll (HieType HieTypeFix )
172
172
173
173
instance Binary (HieType TypeIndex ) where
174
174
put_ bh (HTyVarTy n) = do
@@ -200,7 +200,7 @@ instance Binary (HieType TypeIndex) where
200
200
put_ bh (HCastTy a) = do
201
201
putByte bh 7
202
202
put_ bh a
203
- put_ bh ( HCoercionTy ) = putByte bh 8
203
+ put_ bh HCoercionTy = putByte bh 8
204
204
205
205
get bh = do
206
206
(t :: Word8 ) <- get bh
@@ -228,7 +228,7 @@ instance Binary (HieArgs TypeIndex) where
228
228
229
229
-- | Mapping from filepaths (represented using 'FastString') to the
230
230
-- corresponding AST
231
- newtype HieASTs a = HieASTs { getAsts :: ( M. Map FastString (HieAST a ) ) }
231
+ newtype HieASTs a = HieASTs { getAsts :: M. Map FastString (HieAST a ) }
232
232
deriving (Functor , Foldable , Traversable )
233
233
234
234
instance Binary (HieASTs TypeIndex ) where
@@ -276,9 +276,9 @@ instance Binary (NodeInfo TypeIndex) where
276
276
put_ bh $ nodeType ni
277
277
put_ bh $ M. toList $ nodeIdentifiers ni
278
278
get bh = NodeInfo
279
- <$> fmap ( S. fromDistinctAscList) (get bh)
279
+ <$> fmap S. fromDistinctAscList (get bh)
280
280
<*> get bh
281
- <*> fmap ( M. fromList) (get bh)
281
+ <*> fmap M. fromList (get bh)
282
282
283
283
type Identifier = Either ModuleName Name
284
284
@@ -309,7 +309,7 @@ instance Binary (IdentifierDetails TypeIndex) where
309
309
put_ bh $ S. toAscList $ identInfo dets
310
310
get bh = IdentifierDetails
311
311
<$> get bh
312
- <*> fmap ( S. fromDistinctAscList) (get bh)
312
+ <*> fmap S. fromDistinctAscList (get bh)
313
313
314
314
315
315
-- | Different contexts under which identifiers exist
@@ -419,7 +419,7 @@ data IEType
419
419
420
420
instance Binary IEType where
421
421
put_ bh b = putByte bh (fromIntegral (fromEnum b))
422
- get bh = do x <- getByte bh; pure $! ( toEnum (fromIntegral x) )
422
+ get bh = do x <- getByte bh; pure $! toEnum (fromIntegral x)
423
423
424
424
425
425
data RecFieldContext
@@ -431,7 +431,7 @@ data RecFieldContext
431
431
432
432
instance Binary RecFieldContext where
433
433
put_ bh b = putByte bh (fromIntegral (fromEnum b))
434
- get bh = do x <- getByte bh; pure $! ( toEnum (fromIntegral x) )
434
+ get bh = do x <- getByte bh; pure $! toEnum (fromIntegral x)
435
435
436
436
437
437
data BindType
@@ -441,7 +441,7 @@ data BindType
441
441
442
442
instance Binary BindType where
443
443
put_ bh b = putByte bh (fromIntegral (fromEnum b))
444
- get bh = do x <- getByte bh; pure $! ( toEnum (fromIntegral x) )
444
+ get bh = do x <- getByte bh; pure $! toEnum (fromIntegral x)
445
445
446
446
447
447
data DeclType
@@ -456,7 +456,7 @@ data DeclType
456
456
457
457
instance Binary DeclType where
458
458
put_ bh b = putByte bh (fromIntegral (fromEnum b))
459
- get bh = do x <- getByte bh; pure $! ( toEnum (fromIntegral x) )
459
+ get bh = do x <- getByte bh; pure $! toEnum (fromIntegral x)
460
460
461
461
462
462
data Scope
0 commit comments