Commit graph

216 commits

Author SHA1 Message Date
Jasper Van der Jeugt
99233f830c Binary instance for DirectedGraph 2011-03-20 15:14:42 +01:00
Jasper Van der Jeugt
85252f8ab8 Fix filepath-1.2 issue in toSiteRoot 2011-03-19 11:31:02 +01:00
Jasper Van der Jeugt
cf71e29546 Make toSiteRoot work with /xxx URL's 2011-03-08 11:03:07 +01:00
Jasper Van der Jeugt
26b233dd7a Tag url links should be absolute 2011-03-07 22:10:07 +01:00
Jasper Van der Jeugt
cb4db8b9d5 Throw nice error in cached 2011-03-07 11:14:20 +01:00
Jasper Van der Jeugt
b9bc7f90e1 Throw nice error in getResourceString 2011-03-07 11:04:01 +01:00
Jasper Van der Jeugt
8cfa962005 Add ErrorT to CompilerM monad stack 2011-03-06 15:56:22 +01:00
Jasper Van der Jeugt
be685e6fcd Add BlazeHtml integration 2011-03-04 11:46:06 +01:00
Jasper Van der Jeugt
21789abd10 Add WritableTuple 2011-03-02 20:37:34 +01:00
Jasper Van der Jeugt
c14d8871b8 Add trySetField, fix bug in renderField 2011-03-01 22:26:02 +01:00
Jasper Van der Jeugt
fa057f3011 Add composeRoutes 2011-03-01 09:40:07 +01:00
Jasper Van der Jeugt
d460fd88d1 Add gsubRoute 2011-02-28 22:40:23 +01:00
Jasper Van der Jeugt
49989eab57 Web.Util.String → {Web.Util.Url, Core.Util.String} 2011-02-28 22:33:28 +01:00
Jasper Van der Jeugt
40d921e8e7 Fix URL error in feeds 2011-02-28 20:44:23 +01:00
Jasper Van der Jeugt
5c454fc2ce Fix $body$ bug, add traceShowCompiler 2011-02-26 15:49:11 +01:00
Jasper Van der Jeugt
b73fc8e831 Add some more information on metacompilation 2011-02-26 11:07:46 +01:00
Jasper Van der Jeugt
c89cfdb456 Add byExtension compiler 2011-02-25 14:36:34 +01:00
Jasper Van der Jeugt
730eebe989 The dependency analyzer now knows a little more 2011-02-25 14:17:30 +01:00
Jasper Van der Jeugt
cd6d968187 Remove debug output 2011-02-23 13:48:40 +01:00
Jasper Van der Jeugt
5abc3d87e2 Add cabal flag for inotify 2011-02-23 10:11:55 +01:00
Jasper Van der Jeugt
371c28cb1a Implement interval-based preview 2011-02-21 13:35:20 +01:00
Jasper Van der Jeugt
917829539c Add report function to logger 2011-02-21 13:15:11 +01:00
Jasper Van der Jeugt
8b57ab509f Add logger to Compiler monad 2011-02-21 13:02:35 +01:00
Jasper Van der Jeugt
12a0e5387b Add Unix filters as compilers 2011-02-21 11:42:19 +01:00
Jasper Van der Jeugt
678f18973f Quit/Sync bug fix 2011-02-21 10:56:04 +01:00
Jasper Van der Jeugt
256cc760ba Add pretty, thread-safe logger 2011-02-21 02:56:57 +01:00
Jasper Van der Jeugt
f04efbad3e Preview/INotify now works 2011-02-19 17:04:50 +01:00
Jasper Van der Jeugt
b89aad6178 Include the directory in the path 2011-02-19 10:39:29 +01:00
Jasper Van der Jeugt
4c75843c81 Fix inotify preview polling 2011-02-18 18:15:52 +01:00
Jasper Van der Jeugt
7aac6ccd5d Add applyTemplateCompiler 2011-02-18 18:15:00 +01:00
Jasper Van der Jeugt
03fb17ec6d defaultApplyTemplate → applyTemplateCompiler 2011-02-15 22:48:15 +01:00
Jasper Van der Jeugt
a5438d8d92 defaultCopyFile → copyFileCompiler 2011-02-15 22:46:43 +01:00
Jasper Van der Jeugt
28a30caef0 defaultTemplateRead → templateCompiler 2011-02-15 22:40:16 +01:00
Jasper Van der Jeugt
bc4fef81b7 defaultRelativizeUrls → relativizeUrlsCompiler 2011-02-15 22:20:39 +01:00
Jasper Van der Jeugt
d00026366c defaultPageRead → defaultPageCompiler 2011-02-15 22:15:02 +01:00
Jasper Van der Jeugt
3346123ca6 Receive list of used resources in Run module 2011-02-15 18:43:22 +01:00
Jasper Van der Jeugt
5a591ee24c Rules DSL tracks resources used 2011-02-15 18:32:55 +01:00
Jasper Van der Jeugt
abfb4c1919 defaultCompressCss → compressCssCompiler 2011-02-15 13:50:10 +01:00
Jasper Van der Jeugt
878ca8f3b0 Document RelativizeUrls module 2011-02-12 20:33:46 +01:00
Jasper Van der Jeugt
1e0c875d6e More Identifier documentation 2011-02-12 16:54:31 +01:00
Jasper Van der Jeugt
f910233e0f Avoid name clashes with pandoc 2011-02-12 15:21:26 +01:00
Jasper Van der Jeugt
6e2cc76928 $key$ instead of $key when not found 2011-02-12 15:03:43 +01:00
Jasper Van der Jeugt
1100f65f76 Document Compiler module 2011-02-12 10:26:58 +01:00
Jasper Van der Jeugt
34257df262 Resource = Identifier with an exists invariant 2011-02-11 23:26:54 +01:00
Jasper Van der Jeugt
2b9858a8f9 Add Resource type for improved type-safety 2011-02-11 17:52:19 +01:00
Jasper Van der Jeugt
fc6df44c22 Document Page module 2011-02-11 17:39:53 +01:00
Jasper Van der Jeugt
7797009646 Document the Template module 2011-02-11 16:09:39 +01:00
Jasper Van der Jeugt
60cda32b72 Add transparent reading of hamlet/hakyll templates 2011-02-11 15:34:34 +01:00
Jasper Van der Jeugt
dd81433d74 Split Rules module, add documentation 2011-02-11 13:30:55 +01:00
Jasper Van der Jeugt
2dfe7f6a67 Document Routes module 2011-02-11 08:48:18 +01:00
Jasper Van der Jeugt
4e0abd872a Update cabal file, fix warnings 2011-02-11 08:39:10 +01:00
Jasper Van der Jeugt
84d920432c Add customRoute 2011-02-11 08:20:35 +01:00
Jasper Van der Jeugt
3829083576 Add defaultApplyTemplate compiler 2011-02-10 22:55:03 +01:00
Jasper Van der Jeugt
c03607e087 Add prototype inotify backend 2011-02-10 20:05:50 +01:00
Jasper Van der Jeugt
77f37c1443 getRecursiveContents can return directories 2011-02-10 18:59:16 +01:00
Jasper Van der Jeugt
48da85b341 Add isFileInternal 2011-02-10 16:42:26 +01:00
Jasper Van der Jeugt
d66155968f Move preview server, update to snap 0.4 2011-02-10 16:04:55 +01:00
Jasper Van der Jeugt
1075096df7 Add sortByBaseName function for pages 2011-02-10 15:08:26 +01:00
Jasper Van der Jeugt
3532d5f100 Top-level module for reading templates 2011-02-10 12:30:58 +01:00
Jasper Van der Jeugt
d9e0c3e86b Some tests for the Page module 2011-02-09 19:28:53 +01:00
Jasper Van der Jeugt
002cf4de32 Add hamlet templates and restructure tests 2011-02-09 18:11:24 +01:00
Jasper Van der Jeugt
9e07d1ba36 Template syntax: $foo → $foo$ 2011-02-09 13:27:45 +01:00
Jasper Van der Jeugt
ee320c6166 Finish tags module 2011-02-09 13:02:28 +01:00
Jasper Van der Jeugt
f56eb538b6 Lazy pattern matching for compiler composition 2011-02-07 16:01:09 +01:00
Jasper Van der Jeugt
986a74b3af Add mapA 2011-02-07 11:41:09 +01:00
Jasper Van der Jeugt
781138a0e7 Backport sargon's fix (6d8154) 2011-02-06 22:27:11 +01:00
Jasper Van der Jeugt
bd261e9151 Add getRouteFor 2011-02-06 18:32:09 +01:00
Jasper Van der Jeugt
ec9c1ec0db Instantiate ArrowChoice for Compiler 2011-02-05 13:38:20 +01:00
Jasper Van der Jeugt
c093761e89 Route → Routes 2011-02-03 16:07:49 +01:00
Jasper Van der Jeugt
5705bb8f88 Add command-line args 2011-02-03 14:18:09 +01:00
Jasper Van der Jeugt
26c95402d8 Add a top-level configuration type 2011-02-03 11:34:00 +01:00
Jasper Van der Jeugt
97ce6cbfa0 Add setFieldA function 2011-01-30 15:18:38 +01:00
Jasper Van der Jeugt
c691251fc7 Autogenerate metacompiler indentifiers 2011-01-30 10:44:42 +01:00
Jasper Van der Jeugt
6cecbb890f Add fromCaptureString function 2011-01-25 20:56:10 +01:00
Jasper Van der Jeugt
7ba1413ea9 Add suffix to store files
This prevents file/directory clashes. Example:
when we have a `tags` item, and a `tags/foo` item,
there will be a clash since the store creates:

- a file `store/tags`;
- a file `store/tags/foo`.

The second file requires the first file to be a
directory.

We simply solve this by adding a suffix to all
store files, so it becomes:

- a file `store/tags.hakyllstore`;
- a file `store/tags/foo.hakyllstore`.
2011-01-25 13:50:02 +01:00
Jasper Van der Jeugt
e536a5961c Functor & Applicative instances for Compiler 2011-01-25 11:14:22 +01:00
Jasper Van der Jeugt
9b3e524128 Define all require functions in arrows
TODO: Think of a good naming scheme
2011-01-24 13:30:23 +01:00
Jasper Van der Jeugt
69f15f55ee Fix typo in requireAllA doc (thanks beastaugh) 2011-01-19 08:51:18 +01:00
Jasper Van der Jeugt
89cd33c723 Add requireA/requireAllA functions 2011-01-18 23:58:29 +01:00
Jasper Van der Jeugt
374a9dde5a Micro cleanup 2011-01-18 23:58:16 +01:00
Jasper Van der Jeugt
f104f91182 Monoid instance for page 2011-01-18 23:57:58 +01:00
Jasper Van der Jeugt
0bbc01f012 Backports feeds 2011-01-18 13:29:42 +01:00
Jasper Van der Jeugt
821dd38c13 Add some more defaults 2011-01-18 10:33:13 +01:00
Jasper Van der Jeugt
88b823eb5e Make static server configurable 2011-01-18 09:06:54 +01:00
Jasper Van der Jeugt
cea2197924 Add prototype preview server 2011-01-17 23:21:20 +01:00
Jasper Van der Jeugt
2f951598ef Allow IO operations in compilers 2011-01-17 22:43:44 +01:00
Jasper Van der Jeugt
c576424325 Backport ContextManipulations → Metadata 2011-01-17 16:08:37 +01:00
Jasper Van der Jeugt
78391b9be2 Clearer error message 2011-01-17 16:08:13 +01:00
Jasper Van der Jeugt
e3f8856665 Add renderTagCloud prototype 2011-01-17 10:04:09 +01:00
Jasper Van der Jeugt
d569ae5156 Add utility mapA function 2011-01-17 10:03:26 +01:00
Jasper Van der Jeugt
b867e6f204 Fix skipping certain compilers error 2011-01-17 10:02:46 +01:00
Jasper Van der Jeugt
6e7dc0e58f Micro-cleanup 2011-01-14 08:50:34 +01:00
Jasper Van der Jeugt
3ea3c52f53 Rewrite Run module a bit, get rid off obsolete 2011-01-11 20:20:34 +01:00
Jasper Van der Jeugt
607b1d7d63 sanitize function for DirectedGraph 2011-01-11 19:55:34 +01:00
Jasper Van der Jeugt
c6710ac09a Migrate Reader → Reader, State in Run module 2011-01-08 10:31:08 +01:00
Jasper Van der Jeugt
df8e221aef Fully qualified errors 2011-01-08 09:09:11 +01:00
Jasper Van der Jeugt
d0939102bf Metacompilers now work, todo: cleanup 2011-01-07 19:17:14 +01:00
Jasper Van der Jeugt
ddb8ea2193 Metacompilers now work, except for "modified" 2011-01-07 15:44:11 +01:00
Jasper Van der Jeugt
c443d5c116 Binary/Typeable/Writable instances for Tags 2011-01-07 15:12:22 +01:00
Jasper Van der Jeugt
672ecb077c Add fromCapture(s) 2011-01-07 15:09:55 +01:00