Fix Docs Render compilation with GHC 7.10.1
GHC 7.10.1 infers this type for `isOp`:
(Eq a, Data.String.IsString [a]) => [a] -> Bool
Just needed [a] to be fixed to String.
commitb29a328679a47d294e036d3e0b008c7f7f6f5664
authorBrian McKenna <brian@brianmckenna.org>
dateWed 10 Jun 2015, 10:22 (11 years ago)
parent13ad776
src/Language/PureScript/Docs/Render.hs+1
@@ -101,6 +101,7 @@ addDefaultFixity rd@RenderedDeclaration{..}
101101 | isOp rdTitle && isNothing rdFixity = rd { rdFixity = Just defaultFixity }
102102 | otherwise = rd
103103 where
104+ isOp :: String -> Bool
104105 isOp str = "(" `isPrefixOf` str && ")" `isSuffixOf` str
105106 defaultFixity = P.Fixity P.Infixl (-1)
106107