{- 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	 = ä (228)

133	 = ů (367)

134	 = ć (263)

135	 = ç (231)

136	 = ł (322)

137	 = ë (235)

138	 = Ő (336)

139	 = ő (337)

140	 = î (238)

141	 = Ź (377)

142	 = Ä (196)

143	 = Ć (262)

144	 = É (201)

145	 = Ĺ (313)

146	 = ĺ (314)

147	 = ô (244)

148	 = ö (246)

149	 = Ľ (317)

150	 = ľ (318)

151	 = Ś (346)

152	 = ś (347)

153	 = Ö (214)

154	 = Ü (220)

155	 = Ť (356)

156	 = ť (357)

157	 = Ł (321)

158	 = × (215)

159	 = č (269)

160	 = á (225)

161	 = í (237)

162	 = ó (243)

163	 = ú (250)

164	 = Ą (260)

165	 = ą (261)

166	 = Ž (381)

167	 = ž (382)

168	 = Ę (280)

169	 = ę (281)

170	 = ¬ (172)

171	 = ź (378)

172	 = Č (268)

173	 = ş (351)

174	 = « (171)

175	 = » (187)

176	 = ░ (9617)

177	 = ▒ (9618)

178	 = ▓ (9619)

179	 = │ (9474)

180	 = ┤ (9508)

181	 = Á (193)

182	 = Â (194)

183	 = Ě (282)

184	 = Ş (350)

185	 = ╣ (9571)

186	 = ║ (9553)

187	 = ╗ (9559)

188	 = ╝ (9565)

189	 = Ż (379)

190	 = ż (380)

191	 = ┐ (9488)

192	 = └ (9492)

193	 = ┴ (9524)

194	 = ┬ (9516)

195	 = ├ (9500)

196	 = ─ (9472)

197	 = ┼ (9532)

198	 = Ă (258)

199	 = ă (259)

200	 = ╚ (9562)

201	 = ╔ (9556)

202	 = ╩ (9577)

203	 = ╦ (9574)

204	 = ╠ (9568)

205	 = ═ (9552)

206	 = ╬ (9580)

207	 = ¤ (164)

208	 = đ (273)

209	 = Đ (272)

210	 = Ď (270)

211	 = Ë (203)

212	 = ď (271)

213	 = Ň (327)

214	 = Í (205)

215	 = Î (206)

216	 = ě (283)

217	 = ┘ (9496)

218	 = ┌ (9484)

219	 = █ (9608)

220	 = ▄ (9604)

221	 = Ţ (354)

222	 = Ů (366)

223	 = ▀ (9600)

224	 = Ó (211)

225	 = ß (223)

226	 = Ô (212)

227	 = Ń (323)

228	 = ń (324)

229	 = ň (328)

230	 = Š (352)

231	 = š (353)

232	 = Ŕ (340)

233	 = Ú (218)

234	 = ŕ (341)

235	 = Ű (368)

236	 = ý (253)

237	 = Ý (221)

238	 = ţ (355)

239	 = ´ (180)

240	 = ­ (173)

241	 = ˝ (733)

242	 = ˛ (731)

243	 = ˇ (711)

244	 = ˘ (728)

245	 = § (167)

246	 = ÷ (247)

247	 = ¸ (184)

248	 = ° (176)

249	 = ¨ (168)

250	 = ˙ (729)

251	 = ű (369)

252	 = Ř (344)

253	 = ř (345)

254	 = ■ (9632)

255	 =   (160)
 -}
module Data.Encoding.CP852(CP852(..)) 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 CP852 = CP852
  deriving (Show,Eq,Typeable)

decoding_array_CP852 = StaticArray (0) (255) "\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\228\0\0\0\111\1\0\0\7\1\0\0\231\0\0\0\66\1\0\0\235\0\0\0\80\1\0\0\81\1\0\0\238\0\0\0\121\1\0\0\196\0\0\0\6\1\0\0\201\0\0\0\57\1\0\0\58\1\0\0\244\0\0\0\246\0\0\0\61\1\0\0\62\1\0\0\90\1\0\0\91\1\0\0\214\0\0\0\220\0\0\0\100\1\0\0\101\1\0\0\65\1\0\0\215\0\0\0\13\1\0\0\225\0\0\0\237\0\0\0\243\0\0\0\250\0\0\0\4\1\0\0\5\1\0\0\125\1\0\0\126\1\0\0\24\1\0\0\25\1\0\0\172\0\0\0\122\1\0\0\12\1\0\0\95\1\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\193\0\0\0\194\0\0\0\26\1\0\0\94\1\0\0\99\37\0\0\81\37\0\0\87\37\0\0\93\37\0\0\123\1\0\0\124\1\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\2\1\0\0\3\1\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\164\0\0\0\17\1\0\0\16\1\0\0\14\1\0\0\203\0\0\0\15\1\0\0\71\1\0\0\205\0\0\0\206\0\0\0\27\1\0\0\24\37\0\0\12\37\0\0\136\37\0\0\132\37\0\0\98\1\0\0\110\1\0\0\128\37\0\0\211\0\0\0\223\0\0\0\212\0\0\0\67\1\0\0\68\1\0\0\72\1\0\0\96\1\0\0\97\1\0\0\84\1\0\0\218\0\0\0\85\1\0\0\112\1\0\0\253\0\0\0\221\0\0\0\99\1\0\0\180\0\0\0\173\0\0\0\221\2\0\0\219\2\0\0\199\2\0\0\216\2\0\0\167\0\0\0\247\0\0\0\184\0\0\0\176\0\0\0\168\0\0\0\217\2\0\0\113\1\0\0\88\1\0\0\89\1\0\0\160\37\0\0\160\0\0\0"#

encoding_map_CP852 :: CharMap
encoding_map_CP852 = LeafMap1 (StaticMap (StaticArray (1) (256) "\160\0\0\0\64\0\0\0\67\1\0\0\32\0\0\0\96\0\0\0\235\0\0\0\217\2\0\0\16\0\0\0\48\0\0\0\80\0\0\0\112\0\0\0\203\0\0\0\12\1\0\0\98\1\0\0\84\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\180\0\0\0\220\0\0\0\252\0\0\0\26\1\0\0\88\1\0\0\121\1\0\0\24\37\0\0\108\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\171\0\0\0\194\0\0\0\212\0\0\0\226\0\0\0\244\0\0\0\4\1\0\0\16\1\0\0\61\1\0\0\80\1\0\0\94\1\0\0\110\1\0\0\125\1\0\0\2\37\0\0\52\37\0\0\96\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\167\0\0\0\173\0\0\0\187\0\0\0\199\0\0\0\206\0\0\0\215\0\0\0\223\0\0\0\231\0\0\0\238\0\0\0\247\0\0\0\2\1\0\0\6\1\0\0\14\1\0\0\24\1\0\0\57\1\0\0\65\1\0\0\71\1\0\0\84\1\0\0\90\1\0\0\96\1\0\0\100\1\0\0\112\1\0\0\123\1\0\0\199\2\0\0\221\2\0\0\16\37\0\0\36\37\0\0\80\37\0\0\90\37\0\0\102\37\0\0\132\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\164\0\0\0\168\0\0\0\172\0\0\0\176\0\0\0\184\0\0\0\193\0\0\0\196\0\0\0\201\0\0\0\205\0\0\0\211\0\0\0\214\0\0\0\218\0\0\0\221\0\0\0\225\0\0\0\228\0\0\0\233\0\0\0\237\0\0\0\243\0\0\0\246\0\0\0\250\0\0\0\253\0\0\0\3\1\0\0\5\1\0\0\7\1\0\0\13\1\0\0\15\1\0\0\17\1\0\0\25\1\0\0\27\1\0\0\58\1\0\0\62\1\0\0\66\1\0\0\68\1\0\0\72\1\0\0\81\1\0\0\85\1\0\0\89\1\0\0\91\1\0\0\95\1\0\0\97\1\0\0\99\1\0\0\101\1\0\0\111\1\0\0\113\1\0\0\122\1\0\0\124\1\0\0\126\1\0\0\216\2\0\0\219\2\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\87\37\0\0\93\37\0\0\99\37\0\0\105\37\0\0\128\37\0\0\136\37\0\0\146\37\0\0\160\37\0\0\0\0\0\0"#) (StaticArray (1) (256) "\255\64\227\32\96\137\250\16\48\80\112\211\172\221\201\8\24\40\56\72\88\104\120\239\154\129\183\252\141\217\206\4\12\20\28\36\44\52\60\68\76\84\92\100\108\116\124\174\182\226\131\147\164\209\149\138\184\222\166\179\193\204\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\245\240\175\128\215\158\225\135\140\246\198\143\210\168\145\157\213\232\151\230\155\235\189\243\241\191\180\205\200\203\220\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\207\249\170\248\247\181\142\144\214\224\153\233\237\160\132\130\161\162\148\163\236\199\165\134\159\212\208\169\216\146\150\136\228\229\139\234\253\152\173\231\238\156\133\251\171\190\167\244\242\196\218\192\195\194\197\186\187\188\185\202\223\219\177\254\0"#))

instance Encoding CP852 where
  decodeChar _ = do
    w <- fetchWord8
    return ()
    case decoding_array_CP852!w of
      Nothing -> throwException $ IllegalCharacter $ fromIntegral w
      Just c -> return c
  encodeChar _ c = mapEncode c encoding_map_CP852
  encodeable _ c = mapMember c encoding_map_CP852