{- This file has been auto-generated. Do not edit it. -}
{-# LANGUAGE MagicHash,DeriveDataTypeable #-}
{- |

0	 = � (0)

1	 =  (1)

2	 =  (2)

3	 =  (3)

4	 =  (4)

5	 =  (5)

6	 =  (6)

7	 =  (7)

8	 =  (8)

9	 = 	 (9)

10	 = 
 (10)

11	 =  (11)

12	 =  (12)

13	 = 
 (13)

14	 =  (14)

15	 =  (15)

16	 =  (16)

17	 =  (17)

18	 =  (18)

19	 =  (19)

20	 =  (20)

21	 =  (21)

22	 =  (22)

23	 =  (23)

24	 =  (24)

25	 =  (25)

26	 =  (26)

27	 =  (27)

28	 =  (28)

29	 =  (29)

30	 =  (30)

31	 =  (31)

32	 =   (32)

33	 = ! (33)

34	 = " (34)

35	 = # (35)

36	 = $ (36)

37	 = % (37)

38	 = & (38)

39	 = ' (39)

40	 = ( (40)

41	 = ) (41)

42	 = * (42)

43	 = + (43)

44	 = , (44)

45	 = - (45)

46	 = . (46)

47	 = / (47)

48	 = 0 (48)

49	 = 1 (49)

50	 = 2 (50)

51	 = 3 (51)

52	 = 4 (52)

53	 = 5 (53)

54	 = 6 (54)

55	 = 7 (55)

56	 = 8 (56)

57	 = 9 (57)

58	 = : (58)

59	 = &#59; (59)

60	 = < (60)

61	 = = (61)

62	 = > (62)

63	 = ? (63)

64	 = @ (64)

65	 = A (65)

66	 = B (66)

67	 = C (67)

68	 = D (68)

69	 = E (69)

70	 = F (70)

71	 = G (71)

72	 = H (72)

73	 = I (73)

74	 = J (74)

75	 = K (75)

76	 = L (76)

77	 = M (77)

78	 = N (78)

79	 = O (79)

80	 = P (80)

81	 = Q (81)

82	 = R (82)

83	 = S (83)

84	 = T (84)

85	 = U (85)

86	 = V (86)

87	 = W (87)

88	 = X (88)

89	 = Y (89)

90	 = Z (90)

91	 = [ (91)

92	 = \ (92)

93	 = ] (93)

94	 = ^ (94)

95	 = _ (95)

96	 = ` (96)

97	 = a (97)

98	 = b (98)

99	 = c (99)

100	 = d (100)

101	 = e (101)

102	 = f (102)

103	 = g (103)

104	 = h (104)

105	 = i (105)

106	 = j (106)

107	 = k (107)

108	 = l (108)

109	 = m (109)

110	 = n (110)

111	 = o (111)

112	 = p (112)

113	 = q (113)

114	 = r (114)

115	 = s (115)

116	 = t (116)

117	 = u (117)

118	 = v (118)

119	 = w (119)

120	 = x (120)

121	 = y (121)

122	 = z (122)

123	 = { (123)

124	 = | (124)

125	 = } (125)

126	 = ~ (126)

127	 =  (127)

128	 = Ç (199)

129	 = ü (252)

130	 = é (233)

131	 = â (226)

132	 = ã (227)

133	 = à (224)

134	 = Á (193)

135	 = ç (231)

136	 = ê (234)

137	 = Ê (202)

138	 = è (232)

139	 = Í (205)

140	 = Ô (212)

141	 = ì (236)

142	 = Ã (195)

143	 = Â (194)

144	 = É (201)

145	 = À (192)

146	 = È (200)

147	 = ô (244)

148	 = õ (245)

149	 = ò (242)

150	 = Ú (218)

151	 = ù (249)

152	 = Ì (204)

153	 = Õ (213)

154	 = Ü (220)

155	 = ¢ (162)

156	 = £ (163)

157	 = Ù (217)

158	 = ₧ (8359)

159	 = Ó (211)

160	 = á (225)

161	 = í (237)

162	 = ó (243)

163	 = ú (250)

164	 = ñ (241)

165	 = Ñ (209)

166	 = ª (170)

167	 = º (186)

168	 = ¿ (191)

169	 = Ò (210)

170	 = ¬ (172)

171	 = ½ (189)

172	 = ¼ (188)

173	 = ¡ (161)

174	 = « (171)

175	 = » (187)

176	 = ░ (9617)

177	 = ▒ (9618)

178	 = ▓ (9619)

179	 = │ (9474)

180	 = ┤ (9508)

181	 = ╡ (9569)

182	 = ╢ (9570)

183	 = ╖ (9558)

184	 = ╕ (9557)

185	 = ╣ (9571)

186	 = ║ (9553)

187	 = ╗ (9559)

188	 = ╝ (9565)

189	 = ╜ (9564)

190	 = ╛ (9563)

191	 = ┐ (9488)

192	 = └ (9492)

193	 = ┴ (9524)

194	 = ┬ (9516)

195	 = ├ (9500)

196	 = ─ (9472)

197	 = ┼ (9532)

198	 = ╞ (9566)

199	 = ╟ (9567)

200	 = ╚ (9562)

201	 = ╔ (9556)

202	 = ╩ (9577)

203	 = ╦ (9574)

204	 = ╠ (9568)

205	 = ═ (9552)

206	 = ╬ (9580)

207	 = ╧ (9575)

208	 = ╨ (9576)

209	 = ╤ (9572)

210	 = ╥ (9573)

211	 = ╙ (9561)

212	 = ╘ (9560)

213	 = ╒ (9554)

214	 = ╓ (9555)

215	 = ╫ (9579)

216	 = ╪ (9578)

217	 = ┘ (9496)

218	 = ┌ (9484)

219	 = █ (9608)

220	 = ▄ (9604)

221	 = ▌ (9612)

222	 = ▐ (9616)

223	 = ▀ (9600)

224	 = α (945)

225	 = ß (223)

226	 = Γ (915)

227	 = π (960)

228	 = Σ (931)

229	 = σ (963)

230	 = µ (181)

231	 = τ (964)

232	 = Φ (934)

233	 = Θ (920)

234	 = Ω (937)

235	 = δ (948)

236	 = ∞ (8734)

237	 = φ (966)

238	 = ε (949)

239	 = ∩ (8745)

240	 = ≡ (8801)

241	 = ± (177)

242	 = ≥ (8805)

243	 = ≤ (8804)

244	 = ⌠ (8992)

245	 = ⌡ (8993)

246	 = ÷ (247)

247	 = ≈ (8776)

248	 = ° (176)

249	 = ∙ (8729)

250	 = · (183)

251	 = √ (8730)

252	 = ⁿ (8319)

253	 = ² (178)

254	 = ■ (9632)

255	 =   (160)
 -}
module Data.Encoding.CP860(CP860(..)) where

import Data.Encoding.Base
import Data.Encoding.ByteSource
import Data.Encoding.ByteSink
import Data.Encoding.Exception
import Data.CharMap
import Data.Array.Static
import Data.Map.Static
import Control.Throws
import Prelude hiding (lookup)
import Data.Word

import Data.Typeable

data CP860 = CP860
  deriving (Int -> CP860 -> ShowS
[CP860] -> ShowS
CP860 -> String
(Int -> CP860 -> ShowS)
-> (CP860 -> String) -> ([CP860] -> ShowS) -> Show CP860
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CP860 -> ShowS
showsPrec :: Int -> CP860 -> ShowS
$cshow :: CP860 -> String
show :: CP860 -> String
$cshowList :: [CP860] -> ShowS
showList :: [CP860] -> ShowS
Show,CP860 -> CP860 -> Bool
(CP860 -> CP860 -> Bool) -> (CP860 -> CP860 -> Bool) -> Eq CP860
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CP860 -> CP860 -> Bool
== :: CP860 -> CP860 -> Bool
$c/= :: CP860 -> CP860 -> Bool
/= :: CP860 -> CP860 -> Bool
Eq,Typeable)

decoding_array_CP860 :: StaticArray Word8 e
decoding_array_CP860 = Word8 -> Word8 -> Addr# -> StaticArray Word8 e
forall i e. i -> i -> Addr# -> StaticArray i e
StaticArray (Word8
0) (Word8
255) Addr#
"\0\0\0\0\1\0\0\0\2\0\0\0\3\0\0\0\4\0\0\0\5\0\0\0\6\0\0\0\7\0\0\0\8\0\0\0\9\0\0\0\10\0\0\0\11\0\0\0\12\0\0\0\13\0\0\0\14\0\0\0\15\0\0\0\16\0\0\0\17\0\0\0\18\0\0\0\19\0\0\0\20\0\0\0\21\0\0\0\22\0\0\0\23\0\0\0\24\0\0\0\25\0\0\0\26\0\0\0\27\0\0\0\28\0\0\0\29\0\0\0\30\0\0\0\31\0\0\0\32\0\0\0\33\0\0\0\34\0\0\0\35\0\0\0\36\0\0\0\37\0\0\0\38\0\0\0\39\0\0\0\40\0\0\0\41\0\0\0\42\0\0\0\43\0\0\0\44\0\0\0\45\0\0\0\46\0\0\0\47\0\0\0\48\0\0\0\49\0\0\0\50\0\0\0\51\0\0\0\52\0\0\0\53\0\0\0\54\0\0\0\55\0\0\0\56\0\0\0\57\0\0\0\58\0\0\0\59\0\0\0\60\0\0\0\61\0\0\0\62\0\0\0\63\0\0\0\64\0\0\0\65\0\0\0\66\0\0\0\67\0\0\0\68\0\0\0\69\0\0\0\70\0\0\0\71\0\0\0\72\0\0\0\73\0\0\0\74\0\0\0\75\0\0\0\76\0\0\0\77\0\0\0\78\0\0\0\79\0\0\0\80\0\0\0\81\0\0\0\82\0\0\0\83\0\0\0\84\0\0\0\85\0\0\0\86\0\0\0\87\0\0\0\88\0\0\0\89\0\0\0\90\0\0\0\91\0\0\0\92\0\0\0\93\0\0\0\94\0\0\0\95\0\0\0\96\0\0\0\97\0\0\0\98\0\0\0\99\0\0\0\100\0\0\0\101\0\0\0\102\0\0\0\103\0\0\0\104\0\0\0\105\0\0\0\106\0\0\0\107\0\0\0\108\0\0\0\109\0\0\0\110\0\0\0\111\0\0\0\112\0\0\0\113\0\0\0\114\0\0\0\115\0\0\0\116\0\0\0\117\0\0\0\118\0\0\0\119\0\0\0\120\0\0\0\121\0\0\0\122\0\0\0\123\0\0\0\124\0\0\0\125\0\0\0\126\0\0\0\127\0\0\0\199\0\0\0\252\0\0\0\233\0\0\0\226\0\0\0\227\0\0\0\224\0\0\0\193\0\0\0\231\0\0\0\234\0\0\0\202\0\0\0\232\0\0\0\205\0\0\0\212\0\0\0\236\0\0\0\195\0\0\0\194\0\0\0\201\0\0\0\192\0\0\0\200\0\0\0\244\0\0\0\245\0\0\0\242\0\0\0\218\0\0\0\249\0\0\0\204\0\0\0\213\0\0\0\220\0\0\0\162\0\0\0\163\0\0\0\217\0\0\0\167\32\0\0\211\0\0\0\225\0\0\0\237\0\0\0\243\0\0\0\250\0\0\0\241\0\0\0\209\0\0\0\170\0\0\0\186\0\0\0\191\0\0\0\210\0\0\0\172\0\0\0\189\0\0\0\188\0\0\0\161\0\0\0\171\0\0\0\187\0\0\0\145\37\0\0\146\37\0\0\147\37\0\0\2\37\0\0\36\37\0\0\97\37\0\0\98\37\0\0\86\37\0\0\85\37\0\0\99\37\0\0\81\37\0\0\87\37\0\0\93\37\0\0\92\37\0\0\91\37\0\0\16\37\0\0\20\37\0\0\52\37\0\0\44\37\0\0\28\37\0\0\0\37\0\0\60\37\0\0\94\37\0\0\95\37\0\0\90\37\0\0\84\37\0\0\105\37\0\0\102\37\0\0\96\37\0\0\80\37\0\0\108\37\0\0\103\37\0\0\104\37\0\0\100\37\0\0\101\37\0\0\89\37\0\0\88\37\0\0\82\37\0\0\83\37\0\0\107\37\0\0\106\37\0\0\24\37\0\0\12\37\0\0\136\37\0\0\132\37\0\0\140\37\0\0\144\37\0\0\128\37\0\0\177\3\0\0\223\0\0\0\147\3\0\0\192\3\0\0\163\3\0\0\195\3\0\0\181\0\0\0\196\3\0\0\166\3\0\0\152\3\0\0\169\3\0\0\180\3\0\0\30\34\0\0\198\3\0\0\181\3\0\0\41\34\0\0\97\34\0\0\177\0\0\0\101\34\0\0\100\34\0\0\32\35\0\0\33\35\0\0\247\0\0\0\72\34\0\0\176\0\0\0\25\34\0\0\183\0\0\0\26\34\0\0\127\32\0\0\178\0\0\0\160\37\0\0\160\0\0\0"#

encoding_map_CP860 :: CharMap
encoding_map_CP860 :: CharMap
encoding_map_CP860 = StaticMap Char Word8 -> CharMap
LeafMap1 (StaticArray Int Char
-> StaticArray Int Word8 -> StaticMap Char Word8
forall i e. StaticArray Int i -> StaticArray Int e -> StaticMap i e
StaticMap (Int -> Int -> Addr# -> StaticArray Int Char
forall i e. i -> i -> Addr# -> StaticArray i e
StaticArray (Int
1) (Int
256) Addr#
"\160\0\0\0\64\0\0\0\195\3\0\0\32\0\0\0\96\0\0\0\217\0\0\0\86\37\0\0\16\0\0\0\48\0\0\0\80\0\0\0\112\0\0\0\191\0\0\0\243\0\0\0\2\37\0\0\102\37\0\0\8\0\0\0\24\0\0\0\40\0\0\0\56\0\0\0\72\0\0\0\88\0\0\0\104\0\0\0\120\0\0\0\177\0\0\0\202\0\0\0\231\0\0\0\152\3\0\0\41\34\0\0\52\37\0\0\94\37\0\0\132\37\0\0\4\0\0\0\12\0\0\0\20\0\0\0\28\0\0\0\36\0\0\0\44\0\0\0\52\0\0\0\60\0\0\0\68\0\0\0\76\0\0\0\84\0\0\0\92\0\0\0\100\0\0\0\108\0\0\0\116\0\0\0\124\0\0\0\170\0\0\0\186\0\0\0\195\0\0\0\210\0\0\0\224\0\0\0\236\0\0\0\249\0\0\0\177\3\0\0\167\32\0\0\101\34\0\0\24\37\0\0\82\37\0\0\90\37\0\0\98\37\0\0\106\37\0\0\145\37\0\0\2\0\0\0\6\0\0\0\10\0\0\0\14\0\0\0\18\0\0\0\22\0\0\0\26\0\0\0\30\0\0\0\34\0\0\0\38\0\0\0\42\0\0\0\46\0\0\0\50\0\0\0\54\0\0\0\58\0\0\0\62\0\0\0\66\0\0\0\70\0\0\0\74\0\0\0\78\0\0\0\82\0\0\0\86\0\0\0\90\0\0\0\94\0\0\0\98\0\0\0\102\0\0\0\106\0\0\0\110\0\0\0\114\0\0\0\118\0\0\0\122\0\0\0\126\0\0\0\162\0\0\0\172\0\0\0\181\0\0\0\188\0\0\0\193\0\0\0\200\0\0\0\205\0\0\0\212\0\0\0\220\0\0\0\226\0\0\0\233\0\0\0\241\0\0\0\245\0\0\0\252\0\0\0\166\3\0\0\181\3\0\0\198\3\0\0\26\34\0\0\97\34\0\0\33\35\0\0\16\37\0\0\36\37\0\0\80\37\0\0\84\37\0\0\88\37\0\0\92\37\0\0\96\37\0\0\100\37\0\0\104\37\0\0\108\37\0\0\140\37\0\0\147\37\0\0\1\0\0\0\3\0\0\0\5\0\0\0\7\0\0\0\9\0\0\0\11\0\0\0\13\0\0\0\15\0\0\0\17\0\0\0\19\0\0\0\21\0\0\0\23\0\0\0\25\0\0\0\27\0\0\0\29\0\0\0\31\0\0\0\33\0\0\0\35\0\0\0\37\0\0\0\39\0\0\0\41\0\0\0\43\0\0\0\45\0\0\0\47\0\0\0\49\0\0\0\51\0\0\0\53\0\0\0\55\0\0\0\57\0\0\0\59\0\0\0\61\0\0\0\63\0\0\0\65\0\0\0\67\0\0\0\69\0\0\0\71\0\0\0\73\0\0\0\75\0\0\0\77\0\0\0\79\0\0\0\81\0\0\0\83\0\0\0\85\0\0\0\87\0\0\0\89\0\0\0\91\0\0\0\93\0\0\0\95\0\0\0\97\0\0\0\99\0\0\0\101\0\0\0\103\0\0\0\105\0\0\0\107\0\0\0\109\0\0\0\111\0\0\0\113\0\0\0\115\0\0\0\117\0\0\0\119\0\0\0\121\0\0\0\123\0\0\0\125\0\0\0\127\0\0\0\161\0\0\0\163\0\0\0\171\0\0\0\176\0\0\0\178\0\0\0\183\0\0\0\187\0\0\0\189\0\0\0\192\0\0\0\194\0\0\0\199\0\0\0\201\0\0\0\204\0\0\0\209\0\0\0\211\0\0\0\213\0\0\0\218\0\0\0\223\0\0\0\225\0\0\0\227\0\0\0\232\0\0\0\234\0\0\0\237\0\0\0\242\0\0\0\244\0\0\0\247\0\0\0\250\0\0\0\147\3\0\0\163\3\0\0\169\3\0\0\180\3\0\0\192\3\0\0\196\3\0\0\127\32\0\0\25\34\0\0\30\34\0\0\72\34\0\0\100\34\0\0\32\35\0\0\0\37\0\0\12\37\0\0\20\37\0\0\28\37\0\0\44\37\0\0\60\37\0\0\81\37\0\0\83\37\0\0\85\37\0\0\87\37\0\0\89\37\0\0\91\37\0\0\93\37\0\0\95\37\0\0\97\37\0\0\99\37\0\0\101\37\0\0\103\37\0\0\105\37\0\0\107\37\0\0\128\37\0\0\136\37\0\0\144\37\0\0\146\37\0\0\160\37\0\0\0\0\0\0"#) (Int -> Int -> Addr# -> StaticArray Int Word8
forall i e. i -> i -> Addr# -> StaticArray i e
StaticArray (Int
1) (Int
256) Addr#
"\255\64\229\32\96\157\183\16\48\80\112\168\162\179\203\8\24\40\56\72\88\104\120\241\137\135\233\239\193\198\220\4\12\20\28\36\44\52\60\68\76\84\92\100\108\116\124\166\167\142\169\133\141\151\224\158\242\217\213\200\182\216\176\2\6\10\14\18\22\26\30\34\38\42\46\50\54\58\62\66\70\74\78\82\86\90\94\98\102\106\110\114\118\122\126\155\170\230\172\134\146\139\140\154\131\130\164\148\129\232\238\237\251\240\245\191\180\205\201\212\189\204\209\208\206\221\178\1\3\5\7\9\11\13\15\17\19\21\23\25\27\29\31\33\35\37\39\41\43\45\47\49\51\53\55\57\59\61\63\65\67\69\71\73\75\77\79\81\83\85\87\89\91\93\95\97\99\101\103\105\107\109\111\113\115\117\119\121\123\125\127\173\156\174\248\253\250\175\171\145\143\128\144\152\165\159\153\150\225\160\132\138\136\161\149\147\246\163\226\228\234\235\227\231\252\249\236\247\243\244\196\218\192\195\194\197\186\214\184\187\211\190\188\199\181\185\210\207\202\215\223\219\222\177\254\0"#))

instance Encoding CP860 where
  decodeChar :: forall (m :: * -> *). ByteSource m => CP860 -> m Char
decodeChar CP860
_ = do
    Word8
w <- m Word8
forall (m :: * -> *). ByteSource m => m Word8
fetchWord8
    () -> m ()
forall a. a -> m a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
    case StaticArray Word8 (Maybe Char)
forall {e}. StaticArray Word8 e
decoding_array_CP860StaticArray Word8 (Maybe Char) -> Word8 -> Maybe Char
forall e i. (StaticElement e, Ix i) => StaticArray i e -> i -> e
!Word8
w of
      Maybe Char
Nothing -> DecodingException -> m Char
forall a. DecodingException -> m a
forall e (m :: * -> *) a. Throws e m => e -> m a
throwException (DecodingException -> m Char) -> DecodingException -> m Char
forall a b. (a -> b) -> a -> b
$ Word8 -> DecodingException
IllegalCharacter (Word8 -> DecodingException) -> Word8 -> DecodingException
forall a b. (a -> b) -> a -> b
$ Word8 -> Word8
forall a b. (Integral a, Num b) => a -> b
fromIntegral Word8
w
      Just Char
c -> Char -> m Char
forall a. a -> m a
forall (m :: * -> *) a. Monad m => a -> m a
return Char
c
  encodeChar :: forall (m :: * -> *). ByteSink m => CP860 -> Char -> m ()
encodeChar CP860
_ Char
c = Char -> CharMap -> m ()
forall (m :: * -> *). ByteSink m => Char -> CharMap -> m ()
mapEncode Char
c CharMap
encoding_map_CP860
  encodeable :: CP860 -> Char -> Bool
encodeable CP860
_ Char
c = Char -> CharMap -> Bool
mapMember Char
c CharMap
encoding_map_CP860