Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit c368c43

Browse files
author
Patrick Thomson
committed
🔥 Finite instance.
1 parent 838f09e commit c368c43

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Data/Language.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ instance SLanguage 'TypeScript where
7777
instance SLanguage 'PHP where
7878
reflect _ = PHP
7979

80-
81-
-- This ensures that the protobuf file is generated with ALL_CAPS_NAMES.
82-
instance Finite Language where
83-
enumerate _ = fmap go [Unknown ..] where
84-
go x = (fromString (fmap toUpper (show x)), fromEnum x)
85-
8680
instance FromJSON Language where
8781
parseJSON = withText "Language" $ \l ->
8882
pure $ fromMaybe Unknown (parseLanguage l)

0 commit comments

Comments
 (0)