mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Spacing.
This commit is contained in:
parent
e5ecd7c849
commit
6baa33d0d6
@ -56,6 +56,7 @@ type family ToTagsInstance t :: Strategy where
|
|||||||
ToTagsInstance Py.Call = 'Custom
|
ToTagsInstance Py.Call = 'Custom
|
||||||
ToTagsInstance _ = 'Generic
|
ToTagsInstance _ = 'Generic
|
||||||
|
|
||||||
|
|
||||||
instance (ToTags l, ToTags r) => ToTagsBy 'Custom (l :+: r) where
|
instance (ToTags l, ToTags r) => ToTagsBy 'Custom (l :+: r) where
|
||||||
tags' (L1 l) = tags l
|
tags' (L1 l) = tags l
|
||||||
tags' (R1 r) = tags r
|
tags' (R1 r) = tags r
|
||||||
@ -109,5 +110,6 @@ docComment _ _ = Nothing
|
|||||||
firstLine :: Source -> Text
|
firstLine :: Source -> Text
|
||||||
firstLine = T.take 180 . T.takeWhile (/= '\n') . toText
|
firstLine = T.take 180 . T.takeWhile (/= '\n') . toText
|
||||||
|
|
||||||
|
|
||||||
instance (Generic1 t, Tags.GFoldable1 ToTags (Rep1 t)) => ToTagsBy 'Generic t where
|
instance (Generic1 t, Tags.GFoldable1 ToTags (Rep1 t)) => ToTagsBy 'Generic t where
|
||||||
tags' = getAp . Tags.gfoldMap1 @ToTags (Ap . tags) . from1
|
tags' = getAp . Tags.gfoldMap1 @ToTags (Ap . tags) . from1
|
||||||
|
Loading…
Reference in New Issue
Block a user