@@ -89,6 +89,26 @@ spec = do
89
89
it " list with leading commas" $
90
90
(" one\n , two\n , three3" :: Text ) ~> parseList 1
91
91
`shouldParse` [" one" , " two" , " three3" ]
92
+ describe " Should Succeed" $
93
+ it " list with a comment" $
94
+ (" foo\n -- need to include this too\n bar\n " :: Text ) ~> parseList 1
95
+ `shouldParse` [" foo" , " bar" ]
96
+ describe " Should Succeed" $
97
+ it " list with a comment" $
98
+ (" foo -- need to include this too\n bar\n " :: Text ) ~> parseList 1
99
+ `shouldParse` [" foo" , " bar" ]
100
+ describe " Should Succeed" $
101
+ it " list with a comment" $
102
+ (" foo -- need to include this too\n bar" :: Text ) ~> parseList 1
103
+ `shouldParse` [" foo" , " bar" ]
104
+ describe " Should Succeed" $
105
+ it " list with a comment" $
106
+ (" foo\n bar\n -- need to include this too" :: Text ) ~> parseList 1
107
+ `shouldParse` [" foo" , " bar" ]
108
+ describe " Should Succeed" $
109
+ it " list with a comment" $
110
+ (" foo\n bar -- need to include this too" :: Text ) ~> parseList 1
111
+ `shouldParse` [" foo" , " bar" ]
92
112
describe " Should Succeed" $
93
113
it " succesfully parses exe component with other-modules containing dots" $
94
114
exeSection2 ~> parseExe 0
0 commit comments