Commit Graph

16 Commits

Author SHA1 Message Date
Maximilian Tagher
7cfda1d650 Fix add-handler for new routes file path
https://github.com/yesodweb/yesod/pull/1686 recommended `.yesodroutes` as the file extension for the routes file, and https://github.com/yesodweb/yesod-scaffold/pull/203 added that to the scaffolding. But yesod-bin assumes the file is just named `routes`.

This PR will check if the old path exists and use that, and if not use the new path.

I tested this on the yesod-scaffold repo with both the old and new filename
2020-07-30 14:26:22 -04:00
Michael Snoyman
f5a6ccb363
Appease Hackage 2020-06-29 05:36:16 +03:00
Michael Snoyman
e041ff4da9
Cabal 2.2 support in yesod-bin (fixes #1511) 2018-05-13 15:14:04 +03:00
Michael Snoyman
60f65ed267
Cleanup warnings 2018-01-15 15:09:07 +02:00
GyuYong Jung
854f823059 add src/ to file path if Haskell source files in src
Fixes #1413
2017-08-04 15:40:28 +09:00
Michael Snoyman
d1495bad85 Fix add-handler (fixes #1273) 2016-09-04 08:55:10 +03:00
Nathan Kot
7cffdf5f6c Generate spec file 2015-06-10 03:09:24 +09:00
Joomy Korkut
54d1c2d8a0 Added command-line args option to yesod-bin add-handler (resolves #892) 2015-03-19 09:33:04 -04:00
Maximilian Tagher
54cd923ed5 Fix add-handler putting two routes on one line
* If there is a new line at the end of the file, add the route as normal
* If there isn't, add a newline character before the route
* Closes #921
2015-02-04 08:45:01 -08:00
Maximilian Tagher
3f20c759dc Have add-handler include the function arguments 2014-12-30 19:11:07 -08:00
Michael Snoyman
21a7d47f3b Fixes for import Handler indentation 2014-10-23 05:58:32 +03:00
Dunric
9831220c47 add-handler interactive 2014-08-17 20:15:50 +02:00
Michael Snoyman
cfb96fd316 add-handler: check if file exists #798 2014-08-06 13:47:34 +03:00
Michael Snoyman
14fbd3860c Fix add-handler for multipiece routes (closes #640) 2013-12-29 09:47:18 +02:00
Michael Snoyman
97f7979956 add-handler: use Html instead of RepHtml 2013-04-03 16:15:16 +03:00
Michael Snoyman
7cde3d4bdb Put binaries into yesod-bin (fixes #514) 2013-03-20 08:58:27 +02:00