Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
ghcup-hs
Commits
63c70ee7
Verified
Commit
63c70ee7
authored
5 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Fix changelog subcommand on darwin
parent
2e0bbca2
No related branches found
No related tags found
No related merge requests found
Pipeline
#22212
passed
5 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/ghcup/BrickMain.hs
+5
-1
5 additions, 1 deletion
app/ghcup/BrickMain.hs
app/ghcup/Main.hs
+6
-1
6 additions, 1 deletion
app/ghcup/Main.hs
with
11 additions
and
2 deletions
app/ghcup/BrickMain.hs
+
5
−
1
View file @
63c70ee7
...
@@ -283,7 +283,11 @@ changelog' AppState {..} (_, ListResult {..}) = do
...
@@ -283,7 +283,11 @@ changelog' AppState {..} (_, ListResult {..}) = do
Nothing
->
pure
$
Left
Nothing
->
pure
$
Left
[
i
|
Could not find ChangeLog for #{lTool}, version #{prettyVer lVer}
|]
[
i
|
Could not find ChangeLog for #{lTool}, version #{prettyVer lVer}
|]
Just
uri
->
do
Just
uri
->
do
exec
"xdg-open"
True
[
serializeURIRef'
uri
]
Nothing
Nothing
>>=
\
case
let
cmd
=
case
_rPlatform
pfreq
of
Darwin
->
"open"
Linux
_
->
"xdg-open"
FreeBSD
->
"xdg-open"
exec
cmd
True
[
serializeURIRef'
uri
]
Nothing
Nothing
>>=
\
case
Right
_
->
pure
$
Right
()
Right
_
->
pure
$
Right
()
Left
e
->
pure
$
Left
[
i
|
#{e}
|]
Left
e
->
pure
$
Left
[
i
|
#{e}
|]
...
...
This diff is collapsed.
Click to expand it.
app/ghcup/Main.hs
+
6
−
1
View file @
63c70ee7
...
@@ -1308,9 +1308,14 @@ Make sure to clean up #{tmpdir} afterwards.|])
...
@@ -1308,9 +1308,14 @@ Make sure to clean up #{tmpdir} afterwards.|])
pure
ExitSuccess
pure
ExitSuccess
Just
uri
->
do
Just
uri
->
do
let
uri'
=
T
.
unpack
.
decUTF8Safe
.
serializeURIRef'
$
uri
let
uri'
=
T
.
unpack
.
decUTF8Safe
.
serializeURIRef'
$
uri
cmd
=
case
_rPlatform
pfreq
of
Darwin
->
"open"
Linux
_
->
"xdg-open"
FreeBSD
->
"xdg-open"
if
clOpen
if
clOpen
then
then
exec
"xdg-open"
exec
cmd
True
True
[
serializeURIRef'
uri
]
[
serializeURIRef'
uri
]
Nothing
Nothing
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment