Skip to content

Commit 38999d0

Browse files
authored
Updates for 0.11 (#294)
1 parent ae6f4f9 commit 38999d0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pursuit.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pursuit
2-
version: 0.4.13
2+
version: 0.5.0
33
cabal-version: >= 1.8
44
build-type: Simple
55
license: MIT
@@ -99,7 +99,7 @@ library
9999
, containers
100100
, vector
101101
, time
102-
, purescript >= 0.10.7
102+
, purescript >= 0.11.1
103103
, bower-json >= 1.0.0.1
104104
, blaze-builder
105105
, blaze-markup

src/Handler/Search.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ searchForType ty = do
145145
typeComplexity :: P.Type -> Int
146146
typeComplexity (P.TypeApp a b) = 1 + typeComplexity a + typeComplexity b
147147
typeComplexity (P.ForAll _ t _) = 1 + typeComplexity t
148-
typeComplexity (P.ConstrainedType cs t) = typeComplexity t + length cs
148+
typeComplexity (P.ConstrainedType _ t) = typeComplexity t + 1
149149
typeComplexity P.REmpty = 0
150150
typeComplexity (P.RCons _ t r) = 1 + typeComplexity t + typeComplexity r
151151
typeComplexity (P.KindedType t _) = typeComplexity t

src/TemplateHelpers.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ getHtmlRenderContext = do
180180
{ currentModuleName = currentMn
181181
, buildDocLink = D.getLink linksContext currentMn
182182
, renderDocLink = renderUrl . docLinkRoute linksContext currentMn
183-
, renderSourceLink = renderSourceLink' linksContext
183+
, renderSourceLink = Just . renderSourceLink' linksContext
184184
}
185185

186186
renderSourceLink' :: D.LinksContext -> P.SourceSpan -> Text

stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ extra-deps:
1111
- http-client-0.4.31.2
1212
- http-client-tls-0.2.4.1
1313
- http-conduit-2.1.11
14-
- optparse-applicative-0.13.0.0
14+
- optparse-applicative-0.13.2.0
1515
- pipes-4.2.0
1616
- pipes-http-1.0.5
17-
- purescript-0.10.7
17+
- purescript-0.11.1
1818
- websockets-0.9.8.2

0 commit comments

Comments
 (0)