mirror of
https://github.com/facebook/duckling.git
synced 2024-09-11 21:27:13 +03:00
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:
parent
332e0cc0a7
commit
0b57f49360
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user