Remove ANN pragma for duckling

Summary:
Use of ANN pragma may slow down compilation time because of TemplateHaskell.
Because of that, using comment style ignore would be preferable.

For more information on ways to ignore hints with hlint, please see
https://github.com/ndmitchell/hlint#ignoring-hints

Reviewed By: patapizza

Differential Revision: D17365266

fbshipit-source-id: 71e4952738bba17b4d2ec2a18b31b4b7e3f509db
This commit is contained in:
Phuong Trinh 2019-09-26 02:29:33 -07:00 committed by Facebook Github Bot
parent 332e0cc0a7
commit 0b57f49360

View File

@ -3,6 +3,7 @@
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{- HLINT ignore "Use foldr1OrError" -}
{-# LANGUAGE DeriveAnyClass #-}
@ -240,7 +241,6 @@ data Predicate
| ReplaceIntersectPredicate Predicate Predicate Predicate
deriving Show
{-# ANN runPredicate ("HLint: ignore Use foldr1OrError" :: String) #-}
runPredicate :: Predicate -> SeriesPredicate
runPredicate EmptyPredicate{} = \_ _ -> ([], [])
runPredicate (SeriesPredicate (NoShow p)) = p