Skip to content

Fix build on OS X - #47

Merged
Rufflewind merged 1 commit into
haskell:masterfrom
bgamari:master
Apr 17, 2016
Merged

Fix build on OS X#47
Rufflewind merged 1 commit into
haskell:masterfrom
bgamari:master

Conversation

@bgamari

@bgamari bgamari commented Apr 17, 2016

Copy link
Copy Markdown
Contributor

This was triggered on Darwin.

@bgamari

bgamari commented Apr 17, 2016

Copy link
Copy Markdown
Contributor Author

IMHO it might be worth using-fno-warn-unused-imports here and dropping the CPP from the import lists; this is currently much more fragile than necessary for relatively little benefit.

@Rufflewind

Copy link
Copy Markdown
Member

I think it should probably be like this?

(fromMaybe (utcTimeToPOSIXSeconds atimeOld) atime')
(fromMaybe (utcTimeToPOSIXSeconds mtimeOld) mtime')

@bgamari
bgamari force-pushed the master branch 5 times, most recently from 574ec2d to 261147f Compare April 17, 2016 13:33
@bgamari

bgamari commented Apr 17, 2016

Copy link
Copy Markdown
Contributor Author

Yes, I just finished iterating this; it now seems to build. I'll squash the two commits and write a better commit message.

There were a number of issues there, largely due to the fact that this
codepath is CPP-guarded.
@bgamari bgamari changed the title Add missing import of fromMaybe Fix build on OS X Apr 17, 2016
@bgamari

bgamari commented Apr 17, 2016

Copy link
Copy Markdown
Contributor Author

@Rufflewind how does this look?

@bgamari

bgamari commented Apr 17, 2016

Copy link
Copy Markdown
Contributor Author

This has been successfully built on Darwin.

@Rufflewind
Rufflewind merged commit e16b2c1 into haskell:master Apr 17, 2016
@Rufflewind

Copy link
Copy Markdown
Member

Thanks. I might consider adding the warning suppression you suggested. Probably also a good idea to set up OS X testing on Travis in the future.

@Rufflewind Rufflewind added type: (1) bug The described behavior is not working as intended. and removed type: (1) bug The described behavior is not working as intended. labels Apr 30, 2016
bgamari pushed a commit to bgamari/directory that referenced this pull request Jul 29, 2016
bgamari pushed a commit to bgamari/directory that referenced this pull request Jul 29, 2016
bgamari pushed a commit to bgamari/directory that referenced this pull request Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants