diff --git a/dep/directory-contents/github.json b/dep/directory-contents/github.json index a2ea11809..0f2d65166 100644 --- a/dep/directory-contents/github.json +++ b/dep/directory-contents/github.json @@ -1,8 +1,8 @@ { "owner": "srid", "repo": "directory-contents", - "branch": "sans-tests--pathaIsSymbolicLinkFix--witherable04", + "branch": "master", "private": false, - "rev": "0d3f1d5c86063232a3ccf081d9be143eb2ff1466", - "sha256": "1zmxs2acj1nhdwpn62ksrihmpwyf1dza9iiqhkm41c4m025v6q82" + "rev": "f8c7148121adcf5bae2f41b8265ce9cc4ed0556b", + "sha256": "026in1v0njj53wx60nkbarspw917n4jnh03ss6nk2b2n3kcnx35g" } diff --git a/dep/pandoc-link-context/github.json b/dep/pandoc-link-context/github.json index c1908f6a8..d14297b78 100644 --- a/dep/pandoc-link-context/github.json +++ b/dep/pandoc-link-context/github.json @@ -3,6 +3,6 @@ "repo": "pandoc-link-context", "branch": "master", "private": false, - "rev": "71e4061789884bc3030a9686add9b7fa58aea14e", - "sha256": "1ww1ccsmdmx8ljrs911ind86wna2fg471flazblg59ag6xm9k5wc" + "rev": "85bd204339aafd309b8a3dd99ebffa6a50776cb6", + "sha256": "1iyq4z54cjq4drnv27s69f7m0d75nckg31bm5yf561xpxphc8v7x" } diff --git a/flake.lock b/flake.lock index 2d70ea284..826e61fea 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1606424373, - "narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=", + "lastModified": 1648199409, + "narHash": "sha256-JwPKdC2PoVBkG6E+eWw3j6BMR6sL3COpYWfif7RVb8Y=", "owner": "edolstra", "repo": "flake-compat", - "rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf", + "rev": "64a525ee38886ab9028e6f61790de0832aa3ef03", "type": "github" }, "original": { @@ -18,11 +18,11 @@ }, "flake-utils": { "locked": { - "lastModified": 1617631617, - "narHash": "sha256-PARRCz55qN3gy07VJZIlFeOX420d0nGF0RzGI/9hVlw=", + "lastModified": 1648297722, + "narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "b2c27d1a81b0dc266270fa8aeecebbd1807fc610", + "rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade", "type": "github" }, "original": { @@ -33,17 +33,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1630140382, - "narHash": "sha256-ntXepAHFlAEtaYIU5EzckRUODeeMgpu1u2Yug+4LFNc=", + "lastModified": 1657208011, + "narHash": "sha256-BlIFwopAykvdy1DYayEkj6ZZdkn+cVgPNX98QVLc0jM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "08ef0f28e3a41424b92ba1d203de64257a9fca6a", + "rev": "2770cc0b1e8faa0e20eb2c6aea64c256a706d4f2", "type": "github" }, "original": { "owner": "nixos", + "ref": "nixpkgs-unstable", "repo": "nixpkgs", - "rev": "08ef0f28e3a41424b92ba1d203de64257a9fca6a", "type": "github" } }, diff --git a/flake.nix b/flake.nix index 39ef42874..5a3bad898 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Future-proof note-taking and publishing based on Zettelkasten"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/08ef0f28e3a41424b92ba1d203de64257a9fca6a"; + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; flake-compat = { url = "github:edolstra/flake-compat"; diff --git a/neuron.cabal b/neuron.cabal index fbf8c1596..c27f07117 100644 --- a/neuron.cabal +++ b/neuron.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: neuron -version: 1.9.35.3 +version: 1.9.36.0 license: AGPL-3.0-only copyright: 2020 Sridhar Ratnakumar maintainer: srid@srid.ca @@ -70,7 +70,7 @@ common library-common modern-uri, mtl, optparse-applicative, - pandoc-link-context >= 1.2.0, + pandoc-link-context >= 1.4.0, pandoc-types >= 1.21, parsec, parser-combinators, diff --git a/project.nix b/project.nix index 26317eea1..b2b676c89 100644 --- a/project.nix +++ b/project.nix @@ -67,7 +67,7 @@ let }; haskellOverrides = self: super: with pkgs.haskell.lib; { - pandoc-link-context = self.callCabal2nix "pandoc-link-context" sources.pandoc-link-context { }; + pandoc-link-context = doJailbreak (self.callCabal2nix "pandoc-link-context" sources.pandoc-link-context { }); reflex-dom-pandoc = dontHaddock (self.callCabal2nix "reflex-dom-pandoc" sources.reflex-dom-pandoc { }); reflex-fsnotify = diff --git a/src/Neuron/Cache/Type.hs b/src/Neuron/Cache/Type.hs index bd35333fb..b8d6a3a9d 100644 --- a/src/Neuron/Cache/Type.hs +++ b/src/Neuron/Cache/Type.hs @@ -43,7 +43,7 @@ instance FromJSON NeuronCache where reflexDomGetCache :: ( DomBuilder t m, - Prerender js t m, + Prerender t m, TriggerEvent t m, PerformEvent t m, PostBuild t m, diff --git a/src/Neuron/Frontend/Impulse.hs b/src/Neuron/Frontend/Impulse.hs index 99bc32c64..6553dd145 100644 --- a/src/Neuron/Frontend/Impulse.hs +++ b/src/Neuron/Frontend/Impulse.hs @@ -67,7 +67,7 @@ treeMatches :: Tree (Maybe a, b) -> Bool treeMatches (Node (mm, _) _) = isJust mm renderImpulse :: - (DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender js t m) => + (DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender t m) => Dynamic t (LoadableData (SiteData, ImpulseData)) -> NeuronWebT t m () renderImpulse dataLDyn = do diff --git a/src/Neuron/Frontend/Static/Html.hs b/src/Neuron/Frontend/Static/Html.hs index 3a2c91658..764a9184b 100644 --- a/src/Neuron/Frontend/Static/Html.hs +++ b/src/Neuron/Frontend/Static/Html.hs @@ -25,13 +25,13 @@ import Relude -- | Render the given route renderRoutePage :: - forall t m js a. + forall t m a. ( DomBuilder t m, RawBuilder m, MonadHold t m, PostBuild t m, MonadFix m, - Prerender js t m, + Prerender t m, PerformEvent t m, TriggerEvent t m ) => diff --git a/src/Neuron/Frontend/View.hs b/src/Neuron/Frontend/View.hs index ddb850427..b908c7d71 100644 --- a/src/Neuron/Frontend/View.hs +++ b/src/Neuron/Frontend/View.hs @@ -70,8 +70,8 @@ bodyTemplate neuronVersionM w = do renderBrandFooter neuronVersionM renderRouteImpulse :: - forall t m js. - (DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender js t m) => + forall t m. + (DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender t m) => Dynamic t (LoadableData (SiteData, ImpulseData)) -> NeuronWebT t m () renderRouteImpulse dataLDyn = do @@ -83,13 +83,13 @@ renderRouteImpulse dataLDyn = do Impulse.renderImpulse dataLDyn renderRouteZettel :: - forall t m js. + forall t m. ( DomBuilder t m, RawBuilder m, PostBuild t m, MonadHold t m, MonadFix m, - Prerender js t m + Prerender t m ) => Dynamic t (LoadableData (SiteData, ZettelData)) -> NeuronWebT t m () diff --git a/src/Neuron/Frontend/Zettel/View.hs b/src/Neuron/Frontend/Zettel/View.hs index 2ea7461af..ada9c73d8 100644 --- a/src/Neuron/Frontend/Zettel/View.hs +++ b/src/Neuron/Frontend/Zettel/View.hs @@ -45,7 +45,7 @@ renderZettel :: PostBuild t m, MonadHold t m, MonadFix m, - Prerender js t m + Prerender t m ) => SiteData -> ZettelData -> diff --git a/src/Neuron/Plugin.hs b/src/Neuron/Plugin.hs index 6d450602a..3bb07f15b 100644 --- a/src/Neuron/Plugin.hs +++ b/src/Neuron/Plugin.hs @@ -230,7 +230,7 @@ stripSurroundingContext = -- | Render a zettel Pandoc content given its zettel data. elZettel :: - (DomBuilder t m, RawBuilder m, PostBuild t m, Prerender js t m) => + (DomBuilder t m, RawBuilder m, PostBuild t m, Prerender t m) => ZettelData -> Pandoc -> NeuronWebT t m () @@ -238,8 +238,8 @@ elZettel zData = elPandoc (mkReflexDomPandocConfig zData) mkReflexDomPandocConfig :: - forall js t m. - (DomBuilder t m, RawBuilder m, PostBuild t m, Prerender js t m) => + forall t m. + (DomBuilder t m, RawBuilder m, PostBuild t m, Prerender t m) => ZettelData -> Config t (NeuronWebT t m) () mkReflexDomPandocConfig x =