on master help sign in
get doc links to show up for package dependencies
f941c8aEvan Czaplicki
reactor/src/Index.elm+11−13
@@ -260,20 +260,18 @@ viewVersion (pkg, version) =
260
260
261
261
262viewConstraint : ExactDeps -> (Package.Name, constraint) -> List (Html msg)
262viewConstraint : ExactDeps -> (Package.Name, constraint) -> List (Html msg)
263−viewConstraint exactDeps (packageName, _) =
263+viewConstraint exactDeps (pkg, _) =
264− let
265− pkg = Package.toString packageName
266− vsn =
267− case Dict.get pkg exactDeps of
264+ case Dict.get (Package.toString pkg) exactDeps of
268− Just v -> Version.toString v
265+ Just vsn ->
266+ viewVersion (pkg, vsn)
267+
269− Nothing -> "???"
268+ Nothing ->
270− in
271− [ div [ style "float" "left" ]
269+ [ div [ style "float" "left" ]
272− [ Icon.package
270+ [ Icon.package
273− , text pkg
271+ , text (Package.toString pkg)
272+ ]
273+ , div [ style "float" "right" ] [ text "???" ]
274 ]
274 ]
275− , div [ style "float" "right" ] [ text vsn ]
276− ]
277
275
278
276
279toPackageUrl : Package.Name -> Version.Version -> String
277toPackageUrl : Package.Name -> Version.Version -> String