Skip to content

Commit

Permalink
Updates for 0.11 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 authored Apr 1, 2017
1 parent ae6f4f9 commit 38999d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pursuit.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pursuit
version: 0.4.13
version: 0.5.0
cabal-version: >= 1.8
build-type: Simple
license: MIT
Expand Down Expand Up @@ -99,7 +99,7 @@ library
, containers
, vector
, time
, purescript >= 0.10.7
, purescript >= 0.11.1
, bower-json >= 1.0.0.1
, blaze-builder
, blaze-markup
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/Search.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ searchForType ty = do
typeComplexity :: P.Type -> Int
typeComplexity (P.TypeApp a b) = 1 + typeComplexity a + typeComplexity b
typeComplexity (P.ForAll _ t _) = 1 + typeComplexity t
typeComplexity (P.ConstrainedType cs t) = typeComplexity t + length cs
typeComplexity (P.ConstrainedType _ t) = typeComplexity t + 1
typeComplexity P.REmpty = 0
typeComplexity (P.RCons _ t r) = 1 + typeComplexity t + typeComplexity r
typeComplexity (P.KindedType t _) = typeComplexity t
Expand Down
2 changes: 1 addition & 1 deletion src/TemplateHelpers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ getHtmlRenderContext = do
{ currentModuleName = currentMn
, buildDocLink = D.getLink linksContext currentMn
, renderDocLink = renderUrl . docLinkRoute linksContext currentMn
, renderSourceLink = renderSourceLink' linksContext
, renderSourceLink = Just . renderSourceLink' linksContext
}

renderSourceLink' :: D.LinksContext -> P.SourceSpan -> Text
Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ extra-deps:
- http-client-0.4.31.2
- http-client-tls-0.2.4.1
- http-conduit-2.1.11
- optparse-applicative-0.13.0.0
- optparse-applicative-0.13.2.0
- pipes-4.2.0
- pipes-http-1.0.5
- purescript-0.10.7
- purescript-0.11.1
- websockets-0.9.8.2

0 comments on commit 38999d0

Please sign in to comment.