pretty-show 1.6.13 → 1.6.14
raw patch · 4 files changed
+456/−2412 lines, 4 filesdep ~basedep ~pretty-showPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, pretty-show
API changes (from Hackage documentation)
+ Text.Show.Pretty: pPrintList :: (Foldable f, Show a) => f a -> IO ()
+ Text.Show.Pretty: ppDocList :: (Foldable f, Show a) => f a -> Doc
+ Text.Show.Pretty: ppShowList :: (Foldable f, Show a) => f a -> String
Files
- Text/Show/Parser.hs +0/−2363
- Text/Show/Pretty.hs +29/−3
- dist/build/Text/Show/Parser.hs +424/−44
- pretty-show.cabal +3/−2
− Text/Show/Parser.hs
@@ -1,2363 +0,0 @@-{-# OPTIONS_GHC -w #-}--- We use these options because Happy generates code with a lot of warnings.-{-# LANGUAGE Trustworthy #-}-module Text.Show.Parser (parseValue) where--import Text.Show.Value-import Language.Haskell.Lexer-import Control.Applicative(Applicative(..))-import Control.Monad (ap)---- parser produced by Happy Version 1.19.5--data HappyAbsSyn t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31- = HappyTerminal (PosToken)- | HappyErrorToken Int- | HappyAbsSyn4 (Value)- | HappyAbsSyn5 ((String,Value))- | HappyAbsSyn8 (String)- | HappyAbsSyn10 ((Name,Value))- | HappyAbsSyn11 ([Value])- | HappyAbsSyn12 t12- | HappyAbsSyn13 t13- | HappyAbsSyn14 t14- | HappyAbsSyn15 t15- | HappyAbsSyn16 t16- | HappyAbsSyn17 t17- | HappyAbsSyn18 t18- | HappyAbsSyn19 t19- | HappyAbsSyn20 t20- | HappyAbsSyn21 t21- | HappyAbsSyn22 t22- | HappyAbsSyn23 t23- | HappyAbsSyn24 t24- | HappyAbsSyn25 t25- | HappyAbsSyn26 t26- | HappyAbsSyn27 t27- | HappyAbsSyn28 t28- | HappyAbsSyn29 t29- | HappyAbsSyn30 t30- | HappyAbsSyn31 t31--action_0 (33) = happyShift action_12-action_0 (37) = happyShift action_13-action_0 (39) = happyShift action_14-action_0 (42) = happyShift action_15-action_0 (45) = happyShift action_16-action_0 (46) = happyShift action_17-action_0 (47) = happyShift action_18-action_0 (48) = happyShift action_19-action_0 (49) = happyShift action_20-action_0 (50) = happyShift action_21-action_0 (53) = happyShift action_22-action_0 (54) = happyShift action_23-action_0 (4) = happyGoto action_24-action_0 (6) = happyGoto action_3-action_0 (7) = happyGoto action_4-action_0 (8) = happyGoto action_5-action_0 (12) = happyGoto action_6-action_0 (14) = happyGoto action_7-action_0 (15) = happyGoto action_8-action_0 (16) = happyGoto action_9-action_0 (17) = happyGoto action_10-action_0 (22) = happyGoto action_11-action_0 _ = happyFail--action_1 (33) = happyShift action_12-action_1 (37) = happyShift action_13-action_1 (39) = happyShift action_14-action_1 (42) = happyShift action_15-action_1 (45) = happyShift action_16-action_1 (46) = happyShift action_17-action_1 (47) = happyShift action_18-action_1 (48) = happyShift action_19-action_1 (49) = happyShift action_20-action_1 (50) = happyShift action_21-action_1 (53) = happyShift action_22-action_1 (54) = happyShift action_23-action_1 (4) = happyGoto action_2-action_1 (6) = happyGoto action_3-action_1 (7) = happyGoto action_4-action_1 (8) = happyGoto action_5-action_1 (12) = happyGoto action_6-action_1 (14) = happyGoto action_7-action_1 (15) = happyGoto action_8-action_1 (16) = happyGoto action_9-action_1 (17) = happyGoto action_10-action_1 (22) = happyGoto action_11-action_1 _ = happyFail--action_2 (43) = happyShift action_25-action_2 _ = happyFail--action_3 (44) = happyShift action_44-action_3 (55) = happyShift action_45-action_3 (56) = happyShift action_46-action_3 (57) = happyShift action_47-action_3 (5) = happyGoto action_40-action_3 (9) = happyGoto action_41-action_3 (13) = happyGoto action_42-action_3 (23) = happyGoto action_43-action_3 _ = happyReduce_2--action_4 _ = happyReduce_47--action_5 (35) = happyShift action_39-action_5 _ = happyReduce_10--action_6 _ = happyReduce_5--action_7 _ = happyReduce_18--action_8 _ = happyReduce_19--action_9 _ = happyReduce_23--action_10 _ = happyReduce_22--action_11 (33) = happyShift action_12-action_11 (37) = happyShift action_13-action_11 (39) = happyShift action_14-action_11 (42) = happyShift action_15-action_11 (45) = happyShift action_16-action_11 (46) = happyShift action_17-action_11 (47) = happyShift action_18-action_11 (48) = happyShift action_19-action_11 (49) = happyShift action_20-action_11 (50) = happyShift action_21-action_11 (53) = happyShift action_22-action_11 (54) = happyShift action_23-action_11 (7) = happyGoto action_38-action_11 (8) = happyGoto action_5-action_11 (14) = happyGoto action_7-action_11 (15) = happyGoto action_8-action_11 (16) = happyGoto action_9-action_11 (17) = happyGoto action_10-action_11 _ = happyReduce_34--action_12 (33) = happyShift action_12-action_12 (37) = happyShift action_13-action_12 (39) = happyShift action_14-action_12 (42) = happyShift action_15-action_12 (45) = happyShift action_16-action_12 (46) = happyShift action_17-action_12 (47) = happyShift action_18-action_12 (48) = happyShift action_19-action_12 (49) = happyShift action_20-action_12 (50) = happyShift action_21-action_12 (51) = happyShift action_34-action_12 (52) = happyShift action_35-action_12 (53) = happyShift action_22-action_12 (54) = happyShift action_23-action_12 (55) = happyShift action_36-action_12 (56) = happyShift action_37-action_12 (4) = happyGoto action_32-action_12 (6) = happyGoto action_3-action_12 (7) = happyGoto action_4-action_12 (8) = happyGoto action_5-action_12 (11) = happyGoto action_33-action_12 (12) = happyGoto action_6-action_12 (14) = happyGoto action_7-action_12 (15) = happyGoto action_8-action_12 (16) = happyGoto action_9-action_12 (17) = happyGoto action_10-action_12 (22) = happyGoto action_11-action_12 _ = happyReduce_32--action_13 (33) = happyShift action_12-action_13 (37) = happyShift action_13-action_13 (39) = happyShift action_14-action_13 (42) = happyShift action_15-action_13 (45) = happyShift action_16-action_13 (46) = happyShift action_17-action_13 (47) = happyShift action_18-action_13 (48) = happyShift action_19-action_13 (49) = happyShift action_20-action_13 (50) = happyShift action_21-action_13 (53) = happyShift action_22-action_13 (54) = happyShift action_23-action_13 (4) = happyGoto action_29-action_13 (6) = happyGoto action_3-action_13 (7) = happyGoto action_4-action_13 (8) = happyGoto action_5-action_13 (12) = happyGoto action_6-action_13 (14) = happyGoto action_7-action_13 (15) = happyGoto action_8-action_13 (16) = happyGoto action_9-action_13 (17) = happyGoto action_10-action_13 (19) = happyGoto action_30-action_13 (20) = happyGoto action_31-action_13 (22) = happyGoto action_11-action_13 _ = happyReduce_43--action_14 (49) = happyShift action_27-action_14 (53) = happyShift action_28-action_14 _ = happyFail--action_15 (33) = happyShift action_12-action_15 (37) = happyShift action_13-action_15 (39) = happyShift action_14-action_15 (42) = happyShift action_15-action_15 (45) = happyShift action_16-action_15 (46) = happyShift action_17-action_15 (47) = happyShift action_18-action_15 (48) = happyShift action_19-action_15 (49) = happyShift action_20-action_15 (50) = happyShift action_21-action_15 (53) = happyShift action_22-action_15 (54) = happyShift action_23-action_15 (7) = happyGoto action_26-action_15 (8) = happyGoto action_5-action_15 (14) = happyGoto action_7-action_15 (15) = happyGoto action_8-action_15 (16) = happyGoto action_9-action_15 (17) = happyGoto action_10-action_15 _ = happyFail--action_16 _ = happyReduce_11--action_17 _ = happyReduce_12--action_18 _ = happyReduce_13--action_19 _ = happyReduce_14--action_20 _ = happyReduce_20--action_21 _ = happyReduce_21--action_22 _ = happyReduce_16--action_23 _ = happyReduce_17--action_24 (43) = happyShift action_25-action_24 (58) = happyAccept-action_24 _ = happyFail--action_25 (33) = happyShift action_12-action_25 (37) = happyShift action_13-action_25 (39) = happyShift action_14-action_25 (42) = happyShift action_15-action_25 (45) = happyShift action_16-action_25 (46) = happyShift action_17-action_25 (47) = happyShift action_18-action_25 (48) = happyShift action_19-action_25 (49) = happyShift action_20-action_25 (50) = happyShift action_21-action_25 (53) = happyShift action_22-action_25 (54) = happyShift action_23-action_25 (6) = happyGoto action_71-action_25 (7) = happyGoto action_4-action_25 (8) = happyGoto action_5-action_25 (12) = happyGoto action_6-action_25 (14) = happyGoto action_7-action_25 (15) = happyGoto action_8-action_25 (16) = happyGoto action_9-action_25 (17) = happyGoto action_10-action_25 (22) = happyGoto action_11-action_25 _ = happyFail--action_26 _ = happyReduce_15--action_27 (40) = happyShift action_70-action_27 _ = happyFail--action_28 (40) = happyShift action_69-action_28 _ = happyFail--action_29 (41) = happyShift action_68-action_29 (43) = happyShift action_25-action_29 (21) = happyGoto action_64-action_29 (25) = happyGoto action_65-action_29 (27) = happyGoto action_66-action_29 (30) = happyGoto action_67-action_29 _ = happyReduce_46--action_30 (38) = happyShift action_63-action_30 _ = happyFail--action_31 _ = happyReduce_42--action_32 (34) = happyShift action_61-action_32 (41) = happyShift action_62-action_32 (43) = happyShift action_25-action_32 _ = happyFail--action_33 (34) = happyShift action_60-action_33 _ = happyFail--action_34 (34) = happyShift action_59-action_34 _ = happyFail--action_35 (34) = happyShift action_58-action_35 _ = happyFail--action_36 (34) = happyShift action_57-action_36 _ = happyFail--action_37 (34) = happyShift action_56-action_37 _ = happyFail--action_38 _ = happyReduce_48--action_39 (49) = happyShift action_55-action_39 (10) = happyGoto action_52-action_39 (18) = happyGoto action_53-action_39 (24) = happyGoto action_54-action_39 _ = happyReduce_41--action_40 _ = happyReduce_49--action_41 (33) = happyShift action_12-action_41 (37) = happyShift action_13-action_41 (39) = happyShift action_14-action_41 (42) = happyShift action_15-action_41 (45) = happyShift action_16-action_41 (46) = happyShift action_17-action_41 (47) = happyShift action_18-action_41 (48) = happyShift action_19-action_41 (49) = happyShift action_20-action_41 (50) = happyShift action_21-action_41 (53) = happyShift action_22-action_41 (54) = happyShift action_23-action_41 (6) = happyGoto action_51-action_41 (7) = happyGoto action_4-action_41 (8) = happyGoto action_5-action_41 (12) = happyGoto action_6-action_41 (14) = happyGoto action_7-action_41 (15) = happyGoto action_8-action_41 (16) = happyGoto action_9-action_41 (17) = happyGoto action_10-action_41 (22) = happyGoto action_11-action_41 _ = happyFail--action_42 _ = happyReduce_3--action_43 (44) = happyShift action_44-action_43 (55) = happyShift action_45-action_43 (56) = happyShift action_46-action_43 (57) = happyShift action_47-action_43 (5) = happyGoto action_50-action_43 (9) = happyGoto action_41-action_43 _ = happyReduce_35--action_44 (53) = happyShift action_48-action_44 (54) = happyShift action_49-action_44 _ = happyFail--action_45 _ = happyReduce_26--action_46 _ = happyReduce_27--action_47 _ = happyReduce_30--action_48 (44) = happyShift action_83-action_48 _ = happyFail--action_49 (44) = happyShift action_82-action_49 _ = happyFail--action_50 _ = happyReduce_50--action_51 _ = happyReduce_4--action_52 (41) = happyShift action_81-action_52 (26) = happyGoto action_77-action_52 (28) = happyGoto action_78-action_52 (29) = happyGoto action_79-action_52 (31) = happyGoto action_80-action_52 _ = happyReduce_54--action_53 (36) = happyShift action_76-action_53 _ = happyFail--action_54 _ = happyReduce_40--action_55 (32) = happyShift action_75-action_55 _ = happyFail--action_56 _ = happyReduce_37--action_57 _ = happyReduce_36--action_58 _ = happyReduce_38--action_59 _ = happyReduce_39--action_60 _ = happyReduce_8--action_61 _ = happyReduce_6--action_62 (33) = happyShift action_12-action_62 (37) = happyShift action_13-action_62 (39) = happyShift action_14-action_62 (42) = happyShift action_15-action_62 (45) = happyShift action_16-action_62 (46) = happyShift action_17-action_62 (47) = happyShift action_18-action_62 (48) = happyShift action_19-action_62 (49) = happyShift action_20-action_62 (50) = happyShift action_21-action_62 (53) = happyShift action_22-action_62 (54) = happyShift action_23-action_62 (4) = happyGoto action_29-action_62 (6) = happyGoto action_3-action_62 (7) = happyGoto action_4-action_62 (8) = happyGoto action_5-action_62 (12) = happyGoto action_6-action_62 (14) = happyGoto action_7-action_62 (15) = happyGoto action_8-action_62 (16) = happyGoto action_9-action_62 (17) = happyGoto action_10-action_62 (20) = happyGoto action_74-action_62 (22) = happyGoto action_11-action_62 _ = happyFail--action_63 _ = happyReduce_7--action_64 _ = happyReduce_44--action_65 _ = happyReduce_58--action_66 _ = happyReduce_45--action_67 (41) = happyShift action_68-action_67 (25) = happyGoto action_73-action_67 _ = happyReduce_55--action_68 (33) = happyShift action_12-action_68 (37) = happyShift action_13-action_68 (39) = happyShift action_14-action_68 (42) = happyShift action_15-action_68 (45) = happyShift action_16-action_68 (46) = happyShift action_17-action_68 (47) = happyShift action_18-action_68 (48) = happyShift action_19-action_68 (49) = happyShift action_20-action_68 (50) = happyShift action_21-action_68 (53) = happyShift action_22-action_68 (54) = happyShift action_23-action_68 (4) = happyGoto action_72-action_68 (6) = happyGoto action_3-action_68 (7) = happyGoto action_4-action_68 (8) = happyGoto action_5-action_68 (12) = happyGoto action_6-action_68 (14) = happyGoto action_7-action_68 (15) = happyGoto action_8-action_68 (16) = happyGoto action_9-action_68 (17) = happyGoto action_10-action_68 (22) = happyGoto action_11-action_68 _ = happyFail--action_69 _ = happyReduce_25--action_70 _ = happyReduce_24--action_71 _ = happyReduce_1--action_72 (43) = happyShift action_25-action_72 _ = happyReduce_52--action_73 _ = happyReduce_59--action_74 _ = happyReduce_33--action_75 (33) = happyShift action_12-action_75 (37) = happyShift action_13-action_75 (39) = happyShift action_14-action_75 (42) = happyShift action_15-action_75 (45) = happyShift action_16-action_75 (46) = happyShift action_17-action_75 (47) = happyShift action_18-action_75 (48) = happyShift action_19-action_75 (49) = happyShift action_20-action_75 (50) = happyShift action_21-action_75 (53) = happyShift action_22-action_75 (54) = happyShift action_23-action_75 (4) = happyGoto action_86-action_75 (6) = happyGoto action_3-action_75 (7) = happyGoto action_4-action_75 (8) = happyGoto action_5-action_75 (12) = happyGoto action_6-action_75 (14) = happyGoto action_7-action_75 (15) = happyGoto action_8-action_75 (16) = happyGoto action_9-action_75 (17) = happyGoto action_10-action_75 (22) = happyGoto action_11-action_75 _ = happyFail--action_76 _ = happyReduce_9--action_77 _ = happyReduce_51--action_78 _ = happyReduce_60--action_79 _ = happyReduce_53--action_80 (41) = happyShift action_81-action_80 (28) = happyGoto action_85-action_80 _ = happyReduce_57--action_81 (49) = happyShift action_55-action_81 (10) = happyGoto action_84-action_81 _ = happyFail--action_82 _ = happyReduce_29--action_83 _ = happyReduce_28--action_84 _ = happyReduce_56--action_85 _ = happyReduce_61--action_86 (43) = happyShift action_25-action_86 _ = happyReduce_31--happyReduce_1 = happySpecReduce_3 4 happyReduction_1-happyReduction_1 (HappyAbsSyn4 happy_var_3)- _- (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn4- (Ratio happy_var_1 happy_var_3- )-happyReduction_1 _ _ _ = notHappyAtAll --happyReduce_2 = happySpecReduce_1 4 happyReduction_2-happyReduction_2 (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn4- (happy_var_1- )-happyReduction_2 _ = notHappyAtAll --happyReduce_3 = happySpecReduce_2 4 happyReduction_3-happyReduction_3 (HappyAbsSyn13 happy_var_2)- (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn4- (InfixCons happy_var_1 happy_var_2- )-happyReduction_3 _ _ = notHappyAtAll --happyReduce_4 = happySpecReduce_2 5 happyReduction_4-happyReduction_4 (HappyAbsSyn4 happy_var_2)- (HappyAbsSyn8 happy_var_1)- = HappyAbsSyn5- ((happy_var_1,happy_var_2)- )-happyReduction_4 _ _ = notHappyAtAll --happyReduce_5 = happySpecReduce_1 6 happyReduction_5-happyReduction_5 (HappyAbsSyn12 happy_var_1)- = HappyAbsSyn4- (mkValue happy_var_1- )-happyReduction_5 _ = notHappyAtAll --happyReduce_6 = happySpecReduce_3 7 happyReduction_6-happyReduction_6 _- (HappyAbsSyn4 happy_var_2)- _- = HappyAbsSyn4- (happy_var_2- )-happyReduction_6 _ _ _ = notHappyAtAll --happyReduce_7 = happySpecReduce_3 7 happyReduction_7-happyReduction_7 _- (HappyAbsSyn19 happy_var_2)- _- = HappyAbsSyn4- (List happy_var_2- )-happyReduction_7 _ _ _ = notHappyAtAll --happyReduce_8 = happySpecReduce_3 7 happyReduction_8-happyReduction_8 _- (HappyAbsSyn11 happy_var_2)- _- = HappyAbsSyn4- (Tuple happy_var_2- )-happyReduction_8 _ _ _ = notHappyAtAll --happyReduce_9 = happyReduce 4 7 happyReduction_9-happyReduction_9 (_ `HappyStk`- (HappyAbsSyn18 happy_var_3) `HappyStk`- _ `HappyStk`- (HappyAbsSyn8 happy_var_1) `HappyStk`- happyRest)- = HappyAbsSyn4- (Rec happy_var_1 happy_var_3- ) `HappyStk` happyRest--happyReduce_10 = happySpecReduce_1 7 happyReduction_10-happyReduction_10 (HappyAbsSyn8 happy_var_1)- = HappyAbsSyn4- (Con happy_var_1 []- )-happyReduction_10 _ = notHappyAtAll --happyReduce_11 = happySpecReduce_1 7 happyReduction_11-happyReduction_11 (HappyTerminal ((IntLit, (_,happy_var_1))))- = HappyAbsSyn4- (Integer happy_var_1- )-happyReduction_11 _ = notHappyAtAll --happyReduce_12 = happySpecReduce_1 7 happyReduction_12-happyReduction_12 (HappyTerminal ((FloatLit, (_,happy_var_1))))- = HappyAbsSyn4- (Float happy_var_1- )-happyReduction_12 _ = notHappyAtAll --happyReduce_13 = happySpecReduce_1 7 happyReduction_13-happyReduction_13 (HappyTerminal ((StringLit, (_,happy_var_1))))- = HappyAbsSyn4- (String happy_var_1- )-happyReduction_13 _ = notHappyAtAll --happyReduce_14 = happySpecReduce_1 7 happyReduction_14-happyReduction_14 (HappyTerminal ((CharLit, (_,happy_var_1))))- = HappyAbsSyn4- (Char happy_var_1- )-happyReduction_14 _ = notHappyAtAll --happyReduce_15 = happySpecReduce_2 7 happyReduction_15-happyReduction_15 (HappyAbsSyn4 happy_var_2)- _- = HappyAbsSyn4- (Neg happy_var_2- )-happyReduction_15 _ _ = notHappyAtAll --happyReduce_16 = happySpecReduce_1 8 happyReduction_16-happyReduction_16 (HappyTerminal ((Conid, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_16 _ = notHappyAtAll --happyReduce_17 = happySpecReduce_1 8 happyReduction_17-happyReduction_17 (HappyTerminal ((Qconid, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_17 _ = notHappyAtAll --happyReduce_18 = happySpecReduce_1 8 happyReduction_18-happyReduction_18 (HappyAbsSyn14 happy_var_1)- = HappyAbsSyn8- (happy_var_1- )-happyReduction_18 _ = notHappyAtAll --happyReduce_19 = happySpecReduce_1 8 happyReduction_19-happyReduction_19 (HappyAbsSyn15 happy_var_1)- = HappyAbsSyn8- (happy_var_1- )-happyReduction_19 _ = notHappyAtAll --happyReduce_20 = happySpecReduce_1 8 happyReduction_20-happyReduction_20 (HappyTerminal ((Varid, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_20 _ = notHappyAtAll --happyReduce_21 = happySpecReduce_1 8 happyReduction_21-happyReduction_21 (HappyTerminal ((Qvarid, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_21 _ = notHappyAtAll --happyReduce_22 = happySpecReduce_1 8 happyReduction_22-happyReduction_22 (HappyAbsSyn17 happy_var_1)- = HappyAbsSyn8- (happy_var_1- )-happyReduction_22 _ = notHappyAtAll --happyReduce_23 = happySpecReduce_1 8 happyReduction_23-happyReduction_23 (HappyAbsSyn16 happy_var_1)- = HappyAbsSyn8- (happy_var_1- )-happyReduction_23 _ = notHappyAtAll --happyReduce_24 = happySpecReduce_3 8 happyReduction_24-happyReduction_24 _- _- (HappyTerminal happy_var_1)- = HappyAbsSyn8- ("<" ++ happy_var_1 ++ ">"- )-happyReduction_24 _ _ _ = notHappyAtAll --happyReduce_25 = happySpecReduce_3 8 happyReduction_25-happyReduction_25 _- _- (HappyTerminal happy_var_1)- = HappyAbsSyn8- ("<" ++ happy_var_1 ++ ">"- )-happyReduction_25 _ _ _ = notHappyAtAll --happyReduce_26 = happySpecReduce_1 9 happyReduction_26-happyReduction_26 (HappyTerminal ((Consym, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_26 _ = notHappyAtAll --happyReduce_27 = happySpecReduce_1 9 happyReduction_27-happyReduction_27 (HappyTerminal ((Qconsym, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_27 _ = notHappyAtAll --happyReduce_28 = happySpecReduce_3 9 happyReduction_28-happyReduction_28 _- (HappyTerminal ((Conid, (_,happy_var_2))))- _- = HappyAbsSyn8- (backtick happy_var_2- )-happyReduction_28 _ _ _ = notHappyAtAll --happyReduce_29 = happySpecReduce_3 9 happyReduction_29-happyReduction_29 _- (HappyTerminal ((Qconid, (_,happy_var_2))))- _- = HappyAbsSyn8- (backtick happy_var_2- )-happyReduction_29 _ _ _ = notHappyAtAll --happyReduce_30 = happySpecReduce_1 9 happyReduction_30-happyReduction_30 (HappyTerminal ((Reservedop, (_,happy_var_1))))- = HappyAbsSyn8- (happy_var_1- )-happyReduction_30 _ = notHappyAtAll --happyReduce_31 = happySpecReduce_3 10 happyReduction_31-happyReduction_31 (HappyAbsSyn4 happy_var_3)- _- (HappyTerminal ((Varid, (_,happy_var_1))))- = HappyAbsSyn10- ((happy_var_1,happy_var_3)- )-happyReduction_31 _ _ _ = notHappyAtAll --happyReduce_32 = happySpecReduce_0 11 happyReduction_32-happyReduction_32 = HappyAbsSyn11- ([]- )--happyReduce_33 = happySpecReduce_3 11 happyReduction_33-happyReduction_33 (HappyAbsSyn20 happy_var_3)- _- (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn11- (happy_var_1 : happy_var_3- )-happyReduction_33 _ _ _ = notHappyAtAll --happyReduce_34 = happySpecReduce_1 12 happyReduction_34-happyReduction_34 (HappyAbsSyn22 happy_var_1)- = HappyAbsSyn12- (reverse happy_var_1- )-happyReduction_34 _ = notHappyAtAll --happyReduce_35 = happySpecReduce_1 13 happyReduction_35-happyReduction_35 (HappyAbsSyn23 happy_var_1)- = HappyAbsSyn13- (reverse happy_var_1- )-happyReduction_35 _ = notHappyAtAll --happyReduce_36 = happySpecReduce_3 14 happyReduction_36-happyReduction_36 _- (HappyTerminal ((Consym, (_,happy_var_2))))- _- = HappyAbsSyn14- ("(" ++ happy_var_2 ++ ")"- )-happyReduction_36 _ _ _ = notHappyAtAll --happyReduce_37 = happySpecReduce_3 15 happyReduction_37-happyReduction_37 _- (HappyTerminal ((Qconsym, (_,happy_var_2))))- _- = HappyAbsSyn15- ("(" ++ happy_var_2 ++ ")"- )-happyReduction_37 _ _ _ = notHappyAtAll --happyReduce_38 = happySpecReduce_3 16 happyReduction_38-happyReduction_38 _- (HappyTerminal ((Qvarsym, (_,happy_var_2))))- _- = HappyAbsSyn16- ("(" ++ happy_var_2 ++ ")"- )-happyReduction_38 _ _ _ = notHappyAtAll --happyReduce_39 = happySpecReduce_3 17 happyReduction_39-happyReduction_39 _- (HappyTerminal ((Varsym, (_,happy_var_2))))- _- = HappyAbsSyn17- ("(" ++ happy_var_2 ++ ")"- )-happyReduction_39 _ _ _ = notHappyAtAll --happyReduce_40 = happySpecReduce_1 18 happyReduction_40-happyReduction_40 (HappyAbsSyn24 happy_var_1)- = HappyAbsSyn18- (happy_var_1- )-happyReduction_40 _ = notHappyAtAll --happyReduce_41 = happySpecReduce_0 18 happyReduction_41-happyReduction_41 = HappyAbsSyn18- ([]- )--happyReduce_42 = happySpecReduce_1 19 happyReduction_42-happyReduction_42 (HappyAbsSyn20 happy_var_1)- = HappyAbsSyn19- (happy_var_1- )-happyReduction_42 _ = notHappyAtAll --happyReduce_43 = happySpecReduce_0 19 happyReduction_43-happyReduction_43 = HappyAbsSyn19- ([]- )--happyReduce_44 = happySpecReduce_2 20 happyReduction_44-happyReduction_44 (HappyAbsSyn21 happy_var_2)- (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn20- (happy_var_1 : happy_var_2- )-happyReduction_44 _ _ = notHappyAtAll --happyReduce_45 = happySpecReduce_1 21 happyReduction_45-happyReduction_45 (HappyAbsSyn27 happy_var_1)- = HappyAbsSyn21- (happy_var_1- )-happyReduction_45 _ = notHappyAtAll --happyReduce_46 = happySpecReduce_0 21 happyReduction_46-happyReduction_46 = HappyAbsSyn21- ([]- )--happyReduce_47 = happySpecReduce_1 22 happyReduction_47-happyReduction_47 (HappyAbsSyn4 happy_var_1)- = HappyAbsSyn22- ([happy_var_1]- )-happyReduction_47 _ = notHappyAtAll --happyReduce_48 = happySpecReduce_2 22 happyReduction_48-happyReduction_48 (HappyAbsSyn4 happy_var_2)- (HappyAbsSyn22 happy_var_1)- = HappyAbsSyn22- (happy_var_2 : happy_var_1- )-happyReduction_48 _ _ = notHappyAtAll --happyReduce_49 = happySpecReduce_1 23 happyReduction_49-happyReduction_49 (HappyAbsSyn5 happy_var_1)- = HappyAbsSyn23- ([happy_var_1]- )-happyReduction_49 _ = notHappyAtAll --happyReduce_50 = happySpecReduce_2 23 happyReduction_50-happyReduction_50 (HappyAbsSyn5 happy_var_2)- (HappyAbsSyn23 happy_var_1)- = HappyAbsSyn23- (happy_var_2 : happy_var_1- )-happyReduction_50 _ _ = notHappyAtAll --happyReduce_51 = happySpecReduce_2 24 happyReduction_51-happyReduction_51 (HappyAbsSyn26 happy_var_2)- (HappyAbsSyn10 happy_var_1)- = HappyAbsSyn24- (happy_var_1 : happy_var_2- )-happyReduction_51 _ _ = notHappyAtAll --happyReduce_52 = happySpecReduce_2 25 happyReduction_52-happyReduction_52 (HappyAbsSyn4 happy_var_2)- _- = HappyAbsSyn25- (happy_var_2- )-happyReduction_52 _ _ = notHappyAtAll --happyReduce_53 = happySpecReduce_1 26 happyReduction_53-happyReduction_53 (HappyAbsSyn29 happy_var_1)- = HappyAbsSyn26- (happy_var_1- )-happyReduction_53 _ = notHappyAtAll --happyReduce_54 = happySpecReduce_0 26 happyReduction_54-happyReduction_54 = HappyAbsSyn26- ([]- )--happyReduce_55 = happySpecReduce_1 27 happyReduction_55-happyReduction_55 (HappyAbsSyn30 happy_var_1)- = HappyAbsSyn27- (reverse happy_var_1- )-happyReduction_55 _ = notHappyAtAll --happyReduce_56 = happySpecReduce_2 28 happyReduction_56-happyReduction_56 (HappyAbsSyn10 happy_var_2)- _- = HappyAbsSyn28- (happy_var_2- )-happyReduction_56 _ _ = notHappyAtAll --happyReduce_57 = happySpecReduce_1 29 happyReduction_57-happyReduction_57 (HappyAbsSyn31 happy_var_1)- = HappyAbsSyn29- (reverse happy_var_1- )-happyReduction_57 _ = notHappyAtAll --happyReduce_58 = happySpecReduce_1 30 happyReduction_58-happyReduction_58 (HappyAbsSyn25 happy_var_1)- = HappyAbsSyn30- ([happy_var_1]- )-happyReduction_58 _ = notHappyAtAll --happyReduce_59 = happySpecReduce_2 30 happyReduction_59-happyReduction_59 (HappyAbsSyn25 happy_var_2)- (HappyAbsSyn30 happy_var_1)- = HappyAbsSyn30- (happy_var_2 : happy_var_1- )-happyReduction_59 _ _ = notHappyAtAll --happyReduce_60 = happySpecReduce_1 31 happyReduction_60-happyReduction_60 (HappyAbsSyn28 happy_var_1)- = HappyAbsSyn31- ([happy_var_1]- )-happyReduction_60 _ = notHappyAtAll --happyReduce_61 = happySpecReduce_2 31 happyReduction_61-happyReduction_61 (HappyAbsSyn28 happy_var_2)- (HappyAbsSyn31 happy_var_1)- = HappyAbsSyn31- (happy_var_2 : happy_var_1- )-happyReduction_61 _ _ = notHappyAtAll --happyNewToken action sts stk [] =- action 58 58 notHappyAtAll (HappyState action) sts stk []--happyNewToken action sts stk (tk:tks) =- let cont i = action i i tk (HappyState action) sts stk tks in- case tk of {- (Reservedop, (_,"=")) -> cont 32;- (Special, (_,"(")) -> cont 33;- (Special, (_,")")) -> cont 34;- (Special, (_,"{")) -> cont 35;- (Special, (_,"}")) -> cont 36;- (Special, (_,"[")) -> cont 37;- (Special, (_,"]")) -> cont 38;- (Special, (_,"<")) -> cont 39;- (Special, (_,">")) -> cont 40;- (Special, (_,",")) -> cont 41;- (Varsym, (_,"-")) -> cont 42;- (Varsym, (_,"%")) -> cont 43;- (Special, (_,"`")) -> cont 44;- (IntLit, (_,happy_dollar_dollar)) -> cont 45;- (FloatLit, (_,happy_dollar_dollar)) -> cont 46;- (StringLit, (_,happy_dollar_dollar)) -> cont 47;- (CharLit, (_,happy_dollar_dollar)) -> cont 48;- (Varid, (_,happy_dollar_dollar)) -> cont 49;- (Qvarid, (_,happy_dollar_dollar)) -> cont 50;- (Varsym, (_,happy_dollar_dollar)) -> cont 51;- (Qvarsym, (_,happy_dollar_dollar)) -> cont 52;- (Conid, (_,happy_dollar_dollar)) -> cont 53;- (Qconid, (_,happy_dollar_dollar)) -> cont 54;- (Consym, (_,happy_dollar_dollar)) -> cont 55;- (Qconsym, (_,happy_dollar_dollar)) -> cont 56;- (Reservedop, (_,happy_dollar_dollar)) -> cont 57;- _ -> happyError' (tk:tks)- }--happyError_ 58 tk tks = happyError' tks-happyError_ _ tk tks = happyError' (tk:tks)--happyThen :: () => Maybe a -> (a -> Maybe b) -> Maybe b-happyThen = ((>>=))-happyReturn :: () => a -> Maybe a-happyReturn = (return)-happyThen1 m k tks = ((>>=)) m (\a -> k a tks)-happyReturn1 :: () => a -> b -> Maybe a-happyReturn1 = \a tks -> (return) a-happyError' :: () => [(PosToken)] -> Maybe a-happyError' = happyError--parseValue tks = happySomeParser where- happySomeParser = happyThen (happyParse action_0 tks) (\x -> case x of {HappyAbsSyn4 z -> happyReturn z; _other -> notHappyAtAll })--happySeq = happyDontSeq---backtick :: String -> String-backtick s = "`" ++ s ++ "`"--happyError :: [PosToken] -> Maybe a-happyError ((_,(p,_)) : _) = Nothing -- error ("Parser error at: " ++ show p)-happyError [] = Nothing -- error ("Parser error at EOF")--mkValue :: [Value] -> Value-mkValue [v] = v-mkValue (Con x [] : vs) = Con x vs-mkValue vs = Con "" vs-{-# LINE 1 "templates/GenericTemplate.hs" #-}-{-# LINE 1 "templates/GenericTemplate.hs" #-}-{-# LINE 1 "<built-in>" #-}-{-# LINE 1 "<command-line>" #-}-{-# LINE 8 "<command-line>" #-}-# 1 "/usr/include/stdc-predef.h" 1 3 4--# 17 "/usr/include/stdc-predef.h" 3 4--------------------------------------------{-# LINE 8 "<command-line>" #-}-{-# LINE 1 "/home/diatchki/tools/ghc-8.0.1/lib/ghc-8.0.1/include/ghcversion.h" #-}------------------{-# LINE 8 "<command-line>" #-}-{-# LINE 1 "/tmp/ghc17608_0/ghc_2.h" #-}-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------{-# LINE 8 "<command-line>" #-}-{-# LINE 1 "templates/GenericTemplate.hs" #-}--- Id: GenericTemplate.hs,v 1.26 2005/01/14 14:47:22 simonmar Exp --{-# LINE 13 "templates/GenericTemplate.hs" #-}--{-# LINE 46 "templates/GenericTemplate.hs" #-}---------{-# LINE 67 "templates/GenericTemplate.hs" #-}--{-# LINE 77 "templates/GenericTemplate.hs" #-}--{-# LINE 86 "templates/GenericTemplate.hs" #-}--infixr 9 `HappyStk`-data HappyStk a = HappyStk a (HappyStk a)---------------------------------------------------------------------------------- starting the parse--happyParse start_state = happyNewToken start_state notHappyAtAll notHappyAtAll---------------------------------------------------------------------------------- Accepting the parse---- If the current token is (1), it means we've just accepted a partial--- parse (a %partial parser). We must ignore the saved token on the top of--- the stack in this case.-happyAccept (1) tk st sts (_ `HappyStk` ans `HappyStk` _) =- happyReturn1 ans-happyAccept j tk st sts (HappyStk ans _) = - (happyReturn1 ans)---------------------------------------------------------------------------------- Arrays only: do the next action--{-# LINE 155 "templates/GenericTemplate.hs" #-}---------------------------------------------------------------------------------- HappyState data type (not arrays)----newtype HappyState b c = HappyState- (Int -> -- token number- Int -> -- token number (yes, again)- b -> -- token semantic value- HappyState b c -> -- current state- [HappyState b c] -> -- state stack- c)------------------------------------------------------------------------------------ Shifting a token--happyShift new_state (1) tk st sts stk@(x `HappyStk` _) =- let i = (case x of { HappyErrorToken (i) -> i }) in--- trace "shifting the error token" $- new_state i i tk (HappyState (new_state)) ((st):(sts)) (stk)--happyShift new_state i tk st sts stk =- happyNewToken new_state ((st):(sts)) ((HappyTerminal (tk))`HappyStk`stk)---- happyReduce is specialised for the common cases.--happySpecReduce_0 i fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happySpecReduce_0 nt fn j tk st@((HappyState (action))) sts stk- = action nt j tk st ((st):(sts)) (fn `HappyStk` stk)--happySpecReduce_1 i fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happySpecReduce_1 nt fn j tk _ sts@(((st@(HappyState (action))):(_))) (v1`HappyStk`stk')- = let r = fn v1 in- happySeq r (action nt j tk st sts (r `HappyStk` stk'))--happySpecReduce_2 i fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happySpecReduce_2 nt fn j tk _ ((_):(sts@(((st@(HappyState (action))):(_))))) (v1`HappyStk`v2`HappyStk`stk')- = let r = fn v1 v2 in- happySeq r (action nt j tk st sts (r `HappyStk` stk'))--happySpecReduce_3 i fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happySpecReduce_3 nt fn j tk _ ((_):(((_):(sts@(((st@(HappyState (action))):(_))))))) (v1`HappyStk`v2`HappyStk`v3`HappyStk`stk')- = let r = fn v1 v2 v3 in- happySeq r (action nt j tk st sts (r `HappyStk` stk'))--happyReduce k i fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happyReduce k nt fn j tk st sts stk- = case happyDrop (k - ((1) :: Int)) sts of- sts1@(((st1@(HappyState (action))):(_))) ->- let r = fn stk in -- it doesn't hurt to always seq here...- happyDoSeq r (action nt j tk st1 sts1 r)--happyMonadReduce k nt fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happyMonadReduce k nt fn j tk st sts stk =- case happyDrop k ((st):(sts)) of- sts1@(((st1@(HappyState (action))):(_))) ->- let drop_stk = happyDropStk k stk in- happyThen1 (fn stk tk) (\r -> action nt j tk st1 sts1 (r `HappyStk` drop_stk))--happyMonad2Reduce k nt fn (1) tk st sts stk- = happyFail (1) tk st sts stk-happyMonad2Reduce k nt fn j tk st sts stk =- case happyDrop k ((st):(sts)) of- sts1@(((st1@(HappyState (action))):(_))) ->- let drop_stk = happyDropStk k stk------ new_state = action-- in- happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))--happyDrop (0) l = l-happyDrop n ((_):(t)) = happyDrop (n - ((1) :: Int)) t--happyDropStk (0) l = l-happyDropStk n (x `HappyStk` xs) = happyDropStk (n - ((1)::Int)) xs---------------------------------------------------------------------------------- Moving to a new state after a reduction--{-# LINE 256 "templates/GenericTemplate.hs" #-}-happyGoto action j tk st = action j j tk (HappyState action)----------------------------------------------------------------------------------- Error recovery ((1) is the error token)---- parse error if we are in recovery and we fail again-happyFail (1) tk old_st _ stk@(x `HappyStk` _) =- let i = (case x of { HappyErrorToken (i) -> i }) in--- trace "failing" $ - happyError_ i tk--{- We don't need state discarding for our restricted implementation of- "error". In fact, it can cause some bogus parses, so I've disabled it- for now --SDM---- discard a state-happyFail (1) tk old_st (((HappyState (action))):(sts)) - (saved_tok `HappyStk` _ `HappyStk` stk) =--- trace ("discarding state, depth " ++ show (length stk)) $- action (1) (1) tk (HappyState (action)) sts ((saved_tok`HappyStk`stk))--}---- Enter error recovery: generate an error token,--- save the old token and carry on.-happyFail i tk (HappyState (action)) sts stk =--- trace "entering error recovery" $- action (1) (1) tk (HappyState (action)) sts ( (HappyErrorToken (i)) `HappyStk` stk)---- Internal happy errors:--notHappyAtAll :: a-notHappyAtAll = error "Internal Happy error\n"---------------------------------------------------------------------------------- Hack to get the typechecker to accept our action functions---------------------------------------------------------------------------------------- Seq-ing. If the --strict flag is given, then Happy emits --- happySeq = happyDoSeq--- otherwise it emits--- happySeq = happyDontSeq--happyDoSeq, happyDontSeq :: a -> b -> b-happyDoSeq a b = a `seq` b-happyDontSeq a b = b---------------------------------------------------------------------------------- Don't inline any functions from the template. GHC has a nasty habit--- of deciding to inline happyGoto everywhere, which increases the size of--- the generated parser quite a bit.--{-# LINE 322 "templates/GenericTemplate.hs" #-}-{-# NOINLINE happyShift #-}-{-# NOINLINE happySpecReduce_0 #-}-{-# NOINLINE happySpecReduce_1 #-}-{-# NOINLINE happySpecReduce_2 #-}-{-# NOINLINE happySpecReduce_3 #-}-{-# NOINLINE happyReduce #-}-{-# NOINLINE happyMonadReduce #-}-{-# NOINLINE happyGoto #-}-{-# NOINLINE happyFail #-}---- end of Happy Template.
Text/Show/Pretty.hs view
@@ -22,6 +22,9 @@ -- * Values using the 'Show' class , parseValue, reify, ppDoc, ppShow, pPrint + , -- * Working with listlike ("foldable") collections+ ppDocList, ppShowList, pPrintList+ -- * Values using the 'PrettyVal' class , dumpDoc, dumpStr, PrettyVal(..) @@ -40,6 +43,7 @@ import Text.Show.Value import Text.Show.PrettyVal import Text.Show.Html+import Data.Foldable(toList) import Language.Haskell.Lexer(rmSpace,lexerPass0) import Paths_pretty_show (getDataDir) @@ -57,6 +61,12 @@ ppShow :: Show a => a -> String ppShow = show . ppDoc +-- | Pretty print something that may be converted to a list as a list.+-- Each entry is on a separate line, which means that we don't do clever+-- pretty printing, and so this works well for large strucutures.+ppShowList :: (Foldable f, Show a) => f a -> String+ppShowList = show . ppDocList+ -- | Try to show a value, prettily. If we do not understand the value, then we -- just use its standard 'Show' instance. ppDoc :: Show a => a -> Doc@@ -65,11 +75,23 @@ Nothing -> text txt where txt = show a +-- | Pretty print something that may be converted to a list as a list.+-- Each entry is on a separate line, which means that we don't do clever+-- pretty printing, and so this works well for large strucutures.+ppDocList :: (Foldable f, Show a) => f a -> Doc+ppDocList = blockWith vcat '[' ']' . map ppDoc . toList+ -- | Pretty print a generic value to stdout. This is particularly useful in the -- GHCi interactive environment. pPrint :: Show a => a -> IO () pPrint = putStrLn . ppShow +-- | Pretty print something that may be converted to a list as a list.+-- Each entry is on a separate line, which means that we don't do clever+-- pretty printing, and so this works well for large strucutures.+pPrintList :: (Foldable f, Show a) => f a -> IO ()+pPrintList = putStrLn . ppShowList+ -- | Render a value in the 'PrettyVal' class to a 'Doc'. -- The benefit of this function is that 'PrettyVal' instances may -- be derived automatically using generics.@@ -146,8 +168,12 @@ isInfixAtom (Neg {}) = False isInfixAtom _ = True -block :: Char -> Char -> [Doc] -> Doc-block a b [] = char a <> char b-block a b (d:ds) = sep $+block :: Char -> Char -> [Doc] -> Doc+block = blockWith sep++blockWith :: ([Doc] -> Doc) -> Char -> Char -> [Doc] -> Doc+blockWith _ a b [] = char a <> char b+blockWith f a b (d:ds) = f $ (char a <+> d) : [ char ',' <+> x | x <- ds ] ++ [ char b ]+
dist/build/Text/Show/Parser.hs view
@@ -1,5 +1,8 @@ {-# OPTIONS_GHC -w #-}-{-# OPTIONS -fglasgow-exts -cpp #-}+{-# OPTIONS -XMagicHash -XBangPatterns -XTypeSynonymInstances -XFlexibleInstances -cpp #-}+#if __GLASGOW_HASKELL__ >= 710+{-# OPTIONS_GHC -XPartialTypeSignatures #-}+#endif -- We use these options because Happy generates code with a lot of warnings. {-# LANGUAGE Trustworthy #-} module Text.Show.Parser (parseValue) where@@ -7,11 +10,12 @@ import Text.Show.Value import Language.Haskell.Lexer import qualified Data.Array as Happy_Data_Array+import qualified Data.Bits as Bits import qualified GHC.Exts as Happy_GHC_Exts import Control.Applicative(Applicative(..)) import Control.Monad (ap) --- parser produced by Happy Version 1.19.5+-- parser produced by Happy Version 1.19.8 newtype HappyAbsSyn t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 = HappyAbsSyn HappyAny #if __GLASGOW_HASKELL__ >= 607@@ -195,20 +199,39 @@ {-# INLINE happyOutTok #-} +happyExpList :: HappyAddr+happyExpList = HappyA# "\x00\x00\x00\x00\x51\xf2\x33\x00\x00\x00\x00\x44\xc9\xcf\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x02\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x94\xfc\x0c\x00\x00\x00\x00\x51\xf2\xff\x00\x00\x00\x00\x44\xc9\xcf\x00\x00\x00\x00\x00\x00\x10\x01\x00\x00\x00\x40\x94\xfc\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x44\xc9\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x05\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\xc9\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x70\x00\x00\x00\x00\x00\x00\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x25\x3f\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x51\xf2\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x94\xfc\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00"#++{-# NOINLINE happyExpListPerState #-}+happyExpListPerState st =+ token_strs_expected+ where token_strs = ["error","%dummy","%start_parseValue","value","infixelem","app_value","avalue","con","infixcon","field","tuple","list1__avalue__","list1__infixelem__","prefix__CONSYM__","prefix__QCONSYM__","prefix__QVARSYM__","prefix__VARSYM__","sep__field__','__","sep__value__','__","sep1__value__','__","list__snd__','__value____","rev_list1__avalue__","rev_list1__infixelem__","sep1__field__','__","snd__','__value__","list__snd__','__field____","list1__snd__','__value____","snd__','__field__","list1__snd__','__field____","rev_list1__snd__','__value____","rev_list1__snd__','__field____","'='","'('","')'","'{'","'}'","'['","']'","'<'","'>'","','","'-'","'%'","'`'","INT","FLOAT","STRING","CHAR","VARID","QVARID","VARSYM","QVARSYM","CONID","QCONID","CONSYM","QCONSYM","RESOP","%eof"]+ bit_start = st * 58+ bit_end = (st + 1) * 58+ read_bit = readArrayBit happyExpList+ bits = map read_bit [bit_start..bit_end - 1]+ bits_indexed = zip bits [0..57]+ token_strs_expected = concatMap f bits_indexed+ f (False, _) = []+ f (True, nr) = [token_strs !! nr]+ happyActOffsets :: HappyAddr-happyActOffsets = HappyA# "\x17\x00\x17\x00\x66\x00\xb4\x00\x00\x00\x6d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\xff\xff\x17\x00\x22\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x17\x00\x00\x00\x70\x00\x6f\x00\x3b\x00\x69\x00\x00\x00\x5d\x00\x68\x00\x65\x00\x5e\x00\x5c\x00\x54\x00\x00\x00\x48\x00\x00\x00\x17\x00\x00\x00\xb4\x00\xed\xff\x00\x00\x00\x00\x00\x00\x42\x00\x41\x00\x00\x00\x00\x00\x4c\x00\x44\x00\x00\x00\x45\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x33\x00\x17\x00\x00\x00\x00\x00\x00\x00\x29\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2c\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00"#+happyActOffsets = HappyA# "\x17\x00\x17\x00\xfd\xff\xb4\x00\x00\x00\x16\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\xff\xff\x17\x00\x1a\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x17\x00\x00\x00\x03\x00\x12\x00\x44\x00\x1d\x00\x00\x00\x4c\x00\x32\x00\x3a\x00\x42\x00\x43\x00\x46\x00\x00\x00\x24\x00\x00\x00\x17\x00\x00\x00\xb4\x00\xed\xff\x00\x00\x00\x00\x00\x00\x4a\x00\x4d\x00\x00\x00\x00\x00\x55\x00\x5b\x00\x00\x00\x66\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5e\x00\x17\x00\x00\x00\x00\x00\x00\x00\x5d\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x61\x00\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00"# happyGotoOffsets :: HappyAddr-happyGotoOffsets = HappyA# "\x95\x00\x84\x00\x00\x00\xa3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x00\x51\x00\x2f\x00\x00\x00\xc5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb8\x00\x00\x00\x00\x00\x00\x00\xf1\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xaa\x00\x00\x00\xa7\x00\x00\x00\x2b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x62\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf4\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#+happyGotoOffsets = HappyA# "\x62\x00\x73\x00\x00\x00\xa3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc5\x00\x40\x00\x2f\x00\x00\x00\xd0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa7\x00\x00\x00\x00\x00\x00\x00\xf1\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xaa\x00\x00\x00\xb8\x00\x00\x00\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x00\x00\x00\x00\x63\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x95\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5a\x00\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"# +happyAdjustOffset :: Happy_GHC_Exts.Int# -> Happy_GHC_Exts.Int#+happyAdjustOffset off = off+ happyDefActions :: HappyAddr happyDefActions = HappyA# "\x00\x00\x00\x00\x00\x00\xfd\xff\xd0\xff\xf5\xff\xfa\xff\xed\xff\xec\xff\xe8\xff\xe9\xff\xdd\xff\xdf\xff\xd4\xff\x00\x00\x00\x00\xf4\xff\xf3\xff\xf2\xff\xf1\xff\xeb\xff\xea\xff\xef\xff\xee\xff\x00\x00\x00\x00\xf0\xff\x00\x00\x00\x00\xd1\xff\x00\x00\xd5\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xcf\xff\xd6\xff\xce\xff\x00\x00\xfc\xff\xdc\xff\x00\x00\xe5\xff\xe4\xff\xe1\xff\x00\x00\x00\x00\xcd\xff\xfb\xff\xc9\xff\x00\x00\xd7\xff\x00\x00\xda\xff\xdb\xff\xd9\xff\xd8\xff\xf7\xff\xf9\xff\x00\x00\xf8\xff\xd3\xff\xc5\xff\xd2\xff\xc8\xff\x00\x00\xe6\xff\xe7\xff\xfe\xff\xcb\xff\xc4\xff\xde\xff\x00\x00\xf6\xff\xcc\xff\xc3\xff\xca\xff\xc6\xff\x00\x00\xe2\xff\xe3\xff\xc7\xff\xc2\xff\xe0\xff"# happyCheck :: HappyAddr-happyCheck = HappyA# "\xff\xff\x02\x00\x11\x00\x16\x00\x17\x00\x06\x00\x15\x00\x08\x00\x17\x00\x06\x00\x0b\x00\x1a\x00\x18\x00\x0e\x00\x0f\x00\x10\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\x17\x00\x18\x00\x19\x00\x02\x00\x15\x00\x0c\x00\x0c\x00\x06\x00\x16\x00\x08\x00\x18\x00\x19\x00\x0b\x00\x1b\x00\x12\x00\x0e\x00\x0f\x00\x10\x00\x11\x00\x12\x00\x13\x00\x1b\x00\x01\x00\x16\x00\x17\x00\x00\x00\x05\x00\x02\x00\x03\x00\x04\x00\x12\x00\x0c\x00\x0a\x00\x08\x00\x16\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0a\x00\x0f\x00\x10\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x0a\x00\x01\x00\x0c\x00\x08\x00\x05\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0d\x00\x0d\x00\x10\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x0a\x00\x03\x00\x07\x00\x08\x00\x12\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x03\x00\x03\x00\x03\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x0a\x00\x03\x00\x0c\x00\x08\x00\x03\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x07\x00\x04\x00\x0c\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x09\x00\x09\x00\xff\xff\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\x01\x00\xff\xff\xff\xff\x12\x00\x05\x00\x02\x00\x03\x00\x04\x00\x09\x00\xff\xff\xff\xff\x08\x00\x06\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\x13\x00\xff\xff\x0e\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\x14\x00\xff\xff\x08\x00\x0d\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\x03\x00\x04\x00\x12\x00\xff\xff\x18\x00\x19\x00\x1a\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"#+happyCheck = HappyA# "\xff\xff\x02\x00\x11\x00\x16\x00\x17\x00\x06\x00\x15\x00\x08\x00\x17\x00\x0c\x00\x0b\x00\x1a\x00\x09\x00\x0e\x00\x0f\x00\x10\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\x17\x00\x18\x00\x19\x00\x02\x00\x04\x00\x09\x00\x0c\x00\x06\x00\x16\x00\x08\x00\x18\x00\x19\x00\x0b\x00\x1b\x00\x07\x00\x0e\x00\x0f\x00\x10\x00\x11\x00\x12\x00\x13\x00\x1b\x00\x12\x00\x16\x00\x17\x00\x00\x00\x16\x00\x02\x00\x03\x00\x04\x00\x01\x00\x03\x00\x12\x00\x08\x00\x05\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x03\x00\x0f\x00\x10\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x03\x00\x03\x00\x07\x00\x08\x00\x03\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0a\x00\x03\x00\x0c\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x0a\x00\x0d\x00\x0c\x00\x08\x00\x0d\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0a\x00\x05\x00\x10\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x01\x00\x0a\x00\x0c\x00\x08\x00\x0a\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x0c\x00\x12\x00\x18\x00\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\x15\x00\xff\xff\x06\x00\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\x00\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\x08\x00\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\x01\x00\xff\xff\xff\xff\x12\x00\x05\x00\x02\x00\x03\x00\x04\x00\x09\x00\xff\xff\xff\xff\x08\x00\x06\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\x13\x00\xff\xff\x0e\x00\x12\x00\x02\x00\x03\x00\x04\x00\xff\xff\x14\x00\xff\xff\x08\x00\x0d\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\x03\x00\x04\x00\x12\x00\xff\xff\x18\x00\x19\x00\x1a\x00\x0a\x00\x0b\x00\x0c\x00\x0d\x00\x03\x00\x04\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x0a\x00\x0b\x00\x0c\x00\x0d\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"# happyTable :: HappyAddr-happyTable = HappyA# "\x00\x00\x0d\x00\x40\x00\x31\x00\x32\x00\x0e\x00\x41\x00\x0f\x00\x42\x00\x54\x00\x10\x00\x43\x00\x55\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\x23\x00\x24\x00\x17\x00\x18\x00\x25\x00\x26\x00\x0d\x00\x49\x00\x1a\x00\x1a\x00\x0e\x00\x4d\x00\x0f\x00\x4e\x00\x4f\x00\x10\x00\x50\x00\x38\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\xff\xff\x32\x00\x17\x00\x18\x00\x1d\x00\x29\x00\x03\x00\x04\x00\x05\x00\x1c\x00\x1a\x00\x52\x00\x06\x00\x1d\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x45\x00\x1e\x00\x1f\x00\x1d\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x45\x00\x4c\x00\x1a\x00\x06\x00\x4d\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x53\x00\x54\x00\x4a\x00\x20\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x52\x00\x39\x00\x21\x00\x06\x00\x38\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x3a\x00\x3e\x00\x3b\x00\x56\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x3f\x00\x3c\x00\x1a\x00\x06\x00\x3d\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x40\x00\x28\x00\x1a\x00\x48\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x46\x00\x47\x00\x00\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x02\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x18\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x28\x00\x00\x00\x00\x00\x0b\x00\x29\x00\x33\x00\x04\x00\x05\x00\x2a\x00\x00\x00\x00\x00\x06\x00\x34\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x2b\x00\x00\x00\x35\x00\x0b\x00\x47\x00\x04\x00\x05\x00\x00\x00\x36\x00\x00\x00\x06\x00\x2d\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x1a\x00\x05\x00\x0b\x00\x00\x00\x2e\x00\x2f\x00\x30\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x26\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"#+happyTable = HappyA# "\x00\x00\x0d\x00\x40\x00\x31\x00\x32\x00\x0e\x00\x41\x00\x0f\x00\x42\x00\x1a\x00\x10\x00\x43\x00\x47\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\x23\x00\x24\x00\x17\x00\x18\x00\x25\x00\x26\x00\x0d\x00\x28\x00\x46\x00\x1a\x00\x0e\x00\x4d\x00\x0f\x00\x4e\x00\x4f\x00\x10\x00\x50\x00\x40\x00\x11\x00\x12\x00\x13\x00\x14\x00\x15\x00\x16\x00\xff\xff\x1c\x00\x17\x00\x18\x00\x1d\x00\x1d\x00\x03\x00\x04\x00\x05\x00\x32\x00\x3d\x00\x38\x00\x06\x00\x29\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x3c\x00\x1e\x00\x1f\x00\x20\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x3b\x00\x3a\x00\x21\x00\x06\x00\x39\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x45\x00\x3e\x00\x1a\x00\x1d\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x3f\x00\x54\x00\x1a\x00\x06\x00\x53\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x52\x00\x4d\x00\x4a\x00\x18\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x4c\x00\x45\x00\x1a\x00\x06\x00\x52\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x1a\x00\x38\x00\x55\x00\x02\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x49\x00\x00\x00\x54\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x48\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x56\x00\x0b\x00\x03\x00\x04\x00\x05\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x28\x00\x00\x00\x00\x00\x0b\x00\x29\x00\x47\x00\x04\x00\x05\x00\x2a\x00\x00\x00\x00\x00\x06\x00\x34\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x2b\x00\x00\x00\x35\x00\x0b\x00\x33\x00\x04\x00\x05\x00\x00\x00\x36\x00\x00\x00\x06\x00\x2d\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x26\x00\x05\x00\x0b\x00\x00\x00\x2e\x00\x2f\x00\x30\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x1a\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x08\x00\x09\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"# happyReduceArr = Happy_Data_Array.array (1, 61) [ (1 , happyReduce_1),@@ -277,6 +300,8 @@ happy_n_terms = 28 :: Int happy_n_nonterms = 28 :: Int +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_1 = happySpecReduce_3 0# happyReduction_1 happyReduction_1 happy_x_3 happy_x_2@@ -287,6 +312,8 @@ (Ratio happy_var_1 happy_var_3 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_2 = happySpecReduce_1 0# happyReduction_2 happyReduction_2 happy_x_1 = case happyOut6 happy_x_1 of { happy_var_1 -> @@ -294,6 +321,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_3 = happySpecReduce_2 0# happyReduction_3 happyReduction_3 happy_x_2 happy_x_1@@ -303,6 +332,8 @@ (InfixCons happy_var_1 happy_var_2 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_4 = happySpecReduce_2 1# happyReduction_4 happyReduction_4 happy_x_2 happy_x_1@@ -312,6 +343,8 @@ ((happy_var_1,happy_var_2) )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_5 = happySpecReduce_1 2# happyReduction_5 happyReduction_5 happy_x_1 = case happyOut12 happy_x_1 of { happy_var_1 -> @@ -319,6 +352,8 @@ (mkValue happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_6 = happySpecReduce_3 3# happyReduction_6 happyReduction_6 happy_x_3 happy_x_2@@ -328,6 +363,8 @@ (happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_7 = happySpecReduce_3 3# happyReduction_7 happyReduction_7 happy_x_3 happy_x_2@@ -337,6 +374,8 @@ (List happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_8 = happySpecReduce_3 3# happyReduction_8 happyReduction_8 happy_x_3 happy_x_2@@ -346,6 +385,8 @@ (Tuple happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_9 = happyReduce 4# 3# happyReduction_9 happyReduction_9 (happy_x_4 `HappyStk` happy_x_3 `HappyStk`@@ -358,6 +399,8 @@ (Rec happy_var_1 happy_var_3 ) `HappyStk` happyRest}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_10 = happySpecReduce_1 3# happyReduction_10 happyReduction_10 happy_x_1 = case happyOut8 happy_x_1 of { happy_var_1 -> @@ -365,6 +408,8 @@ (Con happy_var_1 [] )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_11 = happySpecReduce_1 3# happyReduction_11 happyReduction_11 happy_x_1 = case happyOutTok happy_x_1 of { ((IntLit, (_,happy_var_1))) -> @@ -372,6 +417,8 @@ (Integer happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_12 = happySpecReduce_1 3# happyReduction_12 happyReduction_12 happy_x_1 = case happyOutTok happy_x_1 of { ((FloatLit, (_,happy_var_1))) -> @@ -379,6 +426,8 @@ (Float happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_13 = happySpecReduce_1 3# happyReduction_13 happyReduction_13 happy_x_1 = case happyOutTok happy_x_1 of { ((StringLit, (_,happy_var_1))) -> @@ -386,6 +435,8 @@ (String happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_14 = happySpecReduce_1 3# happyReduction_14 happyReduction_14 happy_x_1 = case happyOutTok happy_x_1 of { ((CharLit, (_,happy_var_1))) -> @@ -393,6 +444,8 @@ (Char happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_15 = happySpecReduce_2 3# happyReduction_15 happyReduction_15 happy_x_2 happy_x_1@@ -401,6 +454,8 @@ (Neg happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_16 = happySpecReduce_1 4# happyReduction_16 happyReduction_16 happy_x_1 = case happyOutTok happy_x_1 of { ((Conid, (_,happy_var_1))) -> @@ -408,6 +463,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_17 = happySpecReduce_1 4# happyReduction_17 happyReduction_17 happy_x_1 = case happyOutTok happy_x_1 of { ((Qconid, (_,happy_var_1))) -> @@ -415,6 +472,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_18 = happySpecReduce_1 4# happyReduction_18 happyReduction_18 happy_x_1 = case happyOut14 happy_x_1 of { happy_var_1 -> @@ -422,6 +481,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_19 = happySpecReduce_1 4# happyReduction_19 happyReduction_19 happy_x_1 = case happyOut15 happy_x_1 of { happy_var_1 -> @@ -429,6 +490,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_20 = happySpecReduce_1 4# happyReduction_20 happyReduction_20 happy_x_1 = case happyOutTok happy_x_1 of { ((Varid, (_,happy_var_1))) -> @@ -436,6 +499,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_21 = happySpecReduce_1 4# happyReduction_21 happyReduction_21 happy_x_1 = case happyOutTok happy_x_1 of { ((Qvarid, (_,happy_var_1))) -> @@ -443,6 +508,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_22 = happySpecReduce_1 4# happyReduction_22 happyReduction_22 happy_x_1 = case happyOut17 happy_x_1 of { happy_var_1 -> @@ -450,6 +517,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_23 = happySpecReduce_1 4# happyReduction_23 happyReduction_23 happy_x_1 = case happyOut16 happy_x_1 of { happy_var_1 -> @@ -457,6 +526,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_24 = happySpecReduce_3 4# happyReduction_24 happyReduction_24 happy_x_3 happy_x_2@@ -466,6 +537,8 @@ ("<" ++ happy_var_2 ++ ">" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_25 = happySpecReduce_3 4# happyReduction_25 happyReduction_25 happy_x_3 happy_x_2@@ -475,6 +548,8 @@ ("<" ++ happy_var_2 ++ ">" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_26 = happySpecReduce_1 5# happyReduction_26 happyReduction_26 happy_x_1 = case happyOutTok happy_x_1 of { ((Consym, (_,happy_var_1))) -> @@ -482,6 +557,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_27 = happySpecReduce_1 5# happyReduction_27 happyReduction_27 happy_x_1 = case happyOutTok happy_x_1 of { ((Qconsym, (_,happy_var_1))) -> @@ -489,6 +566,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_28 = happySpecReduce_3 5# happyReduction_28 happyReduction_28 happy_x_3 happy_x_2@@ -498,6 +577,8 @@ (backtick happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_29 = happySpecReduce_3 5# happyReduction_29 happyReduction_29 happy_x_3 happy_x_2@@ -507,6 +588,8 @@ (backtick happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_30 = happySpecReduce_1 5# happyReduction_30 happyReduction_30 happy_x_1 = case happyOutTok happy_x_1 of { ((Reservedop, (_,happy_var_1))) -> @@ -514,6 +597,8 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_31 = happySpecReduce_3 6# happyReduction_31 happyReduction_31 happy_x_3 happy_x_2@@ -524,11 +609,15 @@ ((happy_var_1,happy_var_3) )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_32 = happySpecReduce_0 7# happyReduction_32 happyReduction_32 = happyIn11 ([] ) +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_33 = happySpecReduce_3 7# happyReduction_33 happyReduction_33 happy_x_3 happy_x_2@@ -539,6 +628,8 @@ (happy_var_1 : happy_var_3 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_34 = happySpecReduce_1 8# happyReduction_34 happyReduction_34 happy_x_1 = case happyOut22 happy_x_1 of { happy_var_1 -> @@ -546,6 +637,8 @@ (reverse happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_35 = happySpecReduce_1 9# happyReduction_35 happyReduction_35 happy_x_1 = case happyOut23 happy_x_1 of { happy_var_1 -> @@ -553,6 +646,8 @@ (reverse happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_36 = happySpecReduce_3 10# happyReduction_36 happyReduction_36 happy_x_3 happy_x_2@@ -562,6 +657,8 @@ ("(" ++ happy_var_2 ++ ")" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_37 = happySpecReduce_3 11# happyReduction_37 happyReduction_37 happy_x_3 happy_x_2@@ -571,6 +668,8 @@ ("(" ++ happy_var_2 ++ ")" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_38 = happySpecReduce_3 12# happyReduction_38 happyReduction_38 happy_x_3 happy_x_2@@ -580,6 +679,8 @@ ("(" ++ happy_var_2 ++ ")" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_39 = happySpecReduce_3 13# happyReduction_39 happyReduction_39 happy_x_3 happy_x_2@@ -589,6 +690,8 @@ ("(" ++ happy_var_2 ++ ")" )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_40 = happySpecReduce_1 14# happyReduction_40 happyReduction_40 happy_x_1 = case happyOut24 happy_x_1 of { happy_var_1 -> @@ -596,11 +699,15 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_41 = happySpecReduce_0 14# happyReduction_41 happyReduction_41 = happyIn18 ([] ) +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_42 = happySpecReduce_1 15# happyReduction_42 happyReduction_42 happy_x_1 = case happyOut20 happy_x_1 of { happy_var_1 -> @@ -608,11 +715,15 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_43 = happySpecReduce_0 15# happyReduction_43 happyReduction_43 = happyIn19 ([] ) +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_44 = happySpecReduce_2 16# happyReduction_44 happyReduction_44 happy_x_2 happy_x_1@@ -622,6 +733,8 @@ (happy_var_1 : happy_var_2 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_45 = happySpecReduce_1 17# happyReduction_45 happyReduction_45 happy_x_1 = case happyOut27 happy_x_1 of { happy_var_1 -> @@ -629,11 +742,15 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_46 = happySpecReduce_0 17# happyReduction_46 happyReduction_46 = happyIn21 ([] ) +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_47 = happySpecReduce_1 18# happyReduction_47 happyReduction_47 happy_x_1 = case happyOut7 happy_x_1 of { happy_var_1 -> @@ -641,6 +758,8 @@ ([happy_var_1] )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_48 = happySpecReduce_2 18# happyReduction_48 happyReduction_48 happy_x_2 happy_x_1@@ -650,6 +769,8 @@ (happy_var_2 : happy_var_1 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_49 = happySpecReduce_1 19# happyReduction_49 happyReduction_49 happy_x_1 = case happyOut5 happy_x_1 of { happy_var_1 -> @@ -657,6 +778,8 @@ ([happy_var_1] )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_50 = happySpecReduce_2 19# happyReduction_50 happyReduction_50 happy_x_2 happy_x_1@@ -666,6 +789,8 @@ (happy_var_2 : happy_var_1 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_51 = happySpecReduce_2 20# happyReduction_51 happyReduction_51 happy_x_2 happy_x_1@@ -675,6 +800,8 @@ (happy_var_1 : happy_var_2 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_52 = happySpecReduce_2 21# happyReduction_52 happyReduction_52 happy_x_2 happy_x_1@@ -683,6 +810,8 @@ (happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_53 = happySpecReduce_1 22# happyReduction_53 happyReduction_53 happy_x_1 = case happyOut29 happy_x_1 of { happy_var_1 -> @@ -690,11 +819,15 @@ (happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_54 = happySpecReduce_0 22# happyReduction_54 happyReduction_54 = happyIn26 ([] ) +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_55 = happySpecReduce_1 23# happyReduction_55 happyReduction_55 happy_x_1 = case happyOut30 happy_x_1 of { happy_var_1 -> @@ -702,6 +835,8 @@ (reverse happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_56 = happySpecReduce_2 24# happyReduction_56 happyReduction_56 happy_x_2 happy_x_1@@ -710,6 +845,8 @@ (happy_var_2 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_57 = happySpecReduce_1 25# happyReduction_57 happyReduction_57 happy_x_1 = case happyOut31 happy_x_1 of { happy_var_1 -> @@ -717,6 +854,8 @@ (reverse happy_var_1 )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_58 = happySpecReduce_1 26# happyReduction_58 happyReduction_58 happy_x_1 = case happyOut25 happy_x_1 of { happy_var_1 -> @@ -724,6 +863,8 @@ ([happy_var_1] )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_59 = happySpecReduce_2 26# happyReduction_59 happyReduction_59 happy_x_2 happy_x_1@@ -733,6 +874,8 @@ (happy_var_2 : happy_var_1 )}} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_60 = happySpecReduce_1 27# happyReduction_60 happyReduction_60 happy_x_1 = case happyOut28 happy_x_1 of { happy_var_1 -> @@ -740,6 +883,8 @@ ([happy_var_1] )} +#if __GLASGOW_HASKELL__ >= 710+#endif happyReduce_61 = happySpecReduce_2 27# happyReduction_61 happyReduction_61 happy_x_2 happy_x_1@@ -781,11 +926,11 @@ (Consym, (_,happy_dollar_dollar)) -> cont 24#; (Qconsym, (_,happy_dollar_dollar)) -> cont 25#; (Reservedop, (_,happy_dollar_dollar)) -> cont 26#;- _ -> happyError' (tk:tks)+ _ -> happyError' ((tk:tks), []) } -happyError_ 27# tk tks = happyError' tks-happyError_ _ tk tks = happyError' (tk:tks)+happyError_ explist 27# tk tks = happyError' (tks, explist)+happyError_ explist _ tk tks = happyError' ((tk:tks), explist) happyThen :: () => Maybe a -> (a -> Maybe b) -> Maybe b happyThen = ((>>=))@@ -794,11 +939,10 @@ happyThen1 m k tks = ((>>=)) m (\a -> k a tks) happyReturn1 :: () => a -> b -> Maybe a happyReturn1 = \a tks -> (return) a-happyError' :: () => [(PosToken)] -> Maybe a-happyError' = happyError-+happyError' :: () => ([(PosToken)], [String]) -> Maybe a+happyError' = (\(tokens, _) -> happyError tokens) parseValue tks = happySomeParser where- happySomeParser = happyThen (happyParse 0# tks) (\x -> happyReturn (happyOut4 x))+ happySomeParser = happyThen (happyParse 0# tks) (\x -> happyReturn (happyOut4 x)) happySeq = happyDontSeq @@ -818,7 +962,7 @@ {-# LINE 1 "templates/GenericTemplate.hs" #-} {-# LINE 1 "<built-in>" #-} {-# LINE 1 "<command-line>" #-}-{-# LINE 11 "<command-line>" #-}+{-# LINE 10 "<command-line>" #-} # 1 "/usr/include/stdc-predef.h" 1 3 4 # 17 "/usr/include/stdc-predef.h" 3 4@@ -865,10 +1009,10 @@ -{-# LINE 11 "<command-line>" #-}-{-# LINE 1 "/home/diatchki/tools/ghc-8.0.1/lib/ghc-8.0.1/include/ghcversion.h" #-} +{-# LINE 10 "<command-line>" #-}+{-# LINE 1 "/home/diatchki/tools/ghc-8.2.1/lib/ghc-8.2.1/include/ghcversion.h" #-} @@ -884,8 +1028,8 @@ -{-# LINE 11 "<command-line>" #-}-{-# LINE 1 "/tmp/ghc17638_0/ghc_2.h" #-}+{-# LINE 10 "<command-line>" #-}+{-# LINE 1 "/tmp/ghc20788_0/ghc_2.h" #-} @@ -1930,16 +2074,238 @@ -{-# LINE 11 "<command-line>" #-}+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++{-# LINE 10 "<command-line>" #-} {-# LINE 1 "templates/GenericTemplate.hs" #-} -- Id: GenericTemplate.hs,v 1.26 2005/01/14 14:47:22 simonmar Exp -{-# LINE 13 "templates/GenericTemplate.hs" #-} +++++++ -- Do not remove this comment. Required to fix CPP parsing when using GCC and a clang-compiled alex. #if __GLASGOW_HASKELL__ > 706 #define LT(n,m) ((Happy_GHC_Exts.tagToEnum# (n Happy_GHC_Exts.<# m)) :: Bool)@@ -1950,8 +2316,7 @@ #define GTE(n,m) (n Happy_GHC_Exts.>=# m) #define EQ(n,m) (n Happy_GHC_Exts.==# m) #endif-{-# LINE 46 "templates/GenericTemplate.hs" #-}-+{-# LINE 43 "templates/GenericTemplate.hs" #-} data Happy_IntList = HappyCons Happy_GHC_Exts.Int# Happy_IntList @@ -1959,12 +2324,14 @@ -{-# LINE 67 "templates/GenericTemplate.hs" #-} -{-# LINE 77 "templates/GenericTemplate.hs" #-} -{-# LINE 86 "templates/GenericTemplate.hs" #-}+{-# LINE 65 "templates/GenericTemplate.hs" #-} +{-# LINE 75 "templates/GenericTemplate.hs" #-}++{-# LINE 84 "templates/GenericTemplate.hs" #-}+ infixr 9 `HappyStk` data HappyStk a = HappyStk a (HappyStk a) @@ -1995,7 +2362,7 @@ case action of 0# -> {- nothing -}- happyFail i tk st+ happyFail (happyExpListPerState ((Happy_GHC_Exts.I# (st)) :: Int)) i tk st -1# -> {- nothing -} happyAccept i tk st n | LT(n,(0# :: Happy_GHC_Exts.Int#)) -> {- nothing -}@@ -2007,8 +2374,8 @@ happyShift new_state i tk st where new_state = (n Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#))- where off = indexShortOffAddr happyActOffsets st- off_i = (off Happy_GHC_Exts.+# i)+ where off = happyAdjustOffset (indexShortOffAddr happyActOffsets st)+ off_i = (off Happy_GHC_Exts.+# i) check = if GTE(off_i,(0# :: Happy_GHC_Exts.Int#)) then EQ(indexShortOffAddr happyCheck off_i, i) else False@@ -2017,6 +2384,8 @@ | otherwise = indexShortOffAddr happyDefActions st ++ indexShortOffAddr (HappyA# arr) off = Happy_GHC_Exts.narrow16Int# i where@@ -2028,16 +2397,26 @@ +{-# INLINE happyLt #-}+happyLt x y = LT(x,y) -data HappyAddr = HappyA# Happy_GHC_Exts.Addr# +readArrayBit arr bit =+ Bits.testBit (Happy_GHC_Exts.I# (indexShortOffAddr arr ((unbox_int bit) `Happy_GHC_Exts.iShiftRA#` 4#))) (bit `mod` 16)+ where unbox_int (Happy_GHC_Exts.I# x) = x ++++data HappyAddr = HappyA# Happy_GHC_Exts.Addr#++ ----------------------------------------------------------------------------- -- HappyState data type (not arrays) -{-# LINE 170 "templates/GenericTemplate.hs" #-}+{-# LINE 180 "templates/GenericTemplate.hs" #-} ----------------------------------------------------------------------------- -- Shifting a token@@ -2053,30 +2432,30 @@ -- happyReduce is specialised for the common cases. happySpecReduce_0 i fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happySpecReduce_0 nt fn j tk st@((action)) sts stk = happyGoto nt j tk st (HappyCons (st) (sts)) (fn `HappyStk` stk) happySpecReduce_1 i fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happySpecReduce_1 nt fn j tk _ sts@((HappyCons (st@(action)) (_))) (v1`HappyStk`stk') = let r = fn v1 in happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk')) happySpecReduce_2 i fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happySpecReduce_2 nt fn j tk _ (HappyCons (_) (sts@((HappyCons (st@(action)) (_))))) (v1`HappyStk`v2`HappyStk`stk') = let r = fn v1 v2 in happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk')) happySpecReduce_3 i fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happySpecReduce_3 nt fn j tk _ (HappyCons (_) ((HappyCons (_) (sts@((HappyCons (st@(action)) (_))))))) (v1`HappyStk`v2`HappyStk`v3`HappyStk`stk') = let r = fn v1 v2 v3 in happySeq r (happyGoto nt j tk st sts (r `HappyStk` stk')) happyReduce k i fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happyReduce k nt fn j tk st sts stk = case happyDrop (k Happy_GHC_Exts.-# (1# :: Happy_GHC_Exts.Int#)) sts of sts1@((HappyCons (st1@(action)) (_))) ->@@ -2084,7 +2463,7 @@ happyDoSeq r (happyGoto nt j tk st1 sts1 r) happyMonadReduce k nt fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happyMonadReduce k nt fn j tk st sts stk = case happyDrop k (HappyCons (st) (sts)) of sts1@((HappyCons (st1@(action)) (_))) ->@@ -2092,18 +2471,19 @@ happyThen1 (fn stk tk) (\r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk)) happyMonad2Reduce k nt fn 0# tk st sts stk- = happyFail 0# tk st sts stk+ = happyFail [] 0# tk st sts stk happyMonad2Reduce k nt fn j tk st sts stk = case happyDrop k (HappyCons (st) (sts)) of sts1@((HappyCons (st1@(action)) (_))) -> let drop_stk = happyDropStk k stk - off = indexShortOffAddr happyGotoOffsets st1- off_i = (off Happy_GHC_Exts.+# nt)+ off = happyAdjustOffset (indexShortOffAddr happyGotoOffsets st1)+ off_i = (off Happy_GHC_Exts.+# nt) new_state = indexShortOffAddr happyTable off_i + in happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk)) @@ -2120,8 +2500,8 @@ happyGoto nt j tk st = {- nothing -} happyDoAction j tk new_state- where off = indexShortOffAddr happyGotoOffsets st- off_i = (off Happy_GHC_Exts.+# nt)+ where off = happyAdjustOffset (indexShortOffAddr happyGotoOffsets st)+ off_i = (off Happy_GHC_Exts.+# nt) new_state = indexShortOffAddr happyTable off_i @@ -2131,10 +2511,10 @@ -- Error recovery (0# is the error token) -- parse error if we are in recovery and we fail again-happyFail 0# tk old_st _ stk@(x `HappyStk` _) =+happyFail explist 0# tk old_st _ stk@(x `HappyStk` _) = let i = (case Happy_GHC_Exts.unsafeCoerce# x of { (Happy_GHC_Exts.I# (i)) -> i }) in -- trace "failing" $ - happyError_ i tk+ happyError_ explist i tk {- We don't need state discarding for our restricted implementation of "error". In fact, it can cause some bogus parses, so I've disabled it@@ -2149,7 +2529,7 @@ -- Enter error recovery: generate an error token, -- save the old token and carry on.-happyFail i tk (action) sts stk =+happyFail explist i tk (action) sts stk = -- trace "entering error recovery" $ happyDoAction 0# tk action sts ( (Happy_GHC_Exts.unsafeCoerce# (Happy_GHC_Exts.I# (i))) `HappyStk` stk)
pretty-show.cabal view
@@ -1,5 +1,5 @@ name: pretty-show-version: 1.6.13+version: 1.6.14 category: Text synopsis: Tools for working with derived `Show` instances and generic@@ -50,6 +50,7 @@ ghc-options: -Wall -O2 if impl(ghc < 7.4) cpp-options: -DNO_GENERICS+ build-tool-depends: happy:happy build-tools: happy executable ppsh@@ -59,7 +60,7 @@ hs-source-dirs: bin build-depends: base >= 4.5 && < 5,- pretty-show == 1.6.13+ pretty-show ghc-options: -Wall source-repository head