Commit ce499909 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[haddock] haddock builds correclty now

parent 64f251bc
Pipeline #1471 canceled with stage
...@@ -156,3 +156,12 @@ file format. To decode it to JSON and analyze, say, using ...@@ -156,3 +156,12 @@ file format. To decode it to JSON and analyze, say, using
``` sh ``` sh
cat repos/repo.cbor.v5 | stack --nix exec gargantext-cbor2json | jq . cat repos/repo.cbor.v5 | stack --nix exec gargantext-cbor2json | jq .
``` ```
### Documentation
To build documentation, run:
```sh
stack --docker build --haddock --no-haddock-deps --fast
```
...@@ -97,7 +97,7 @@ buildNgramsOthersList ::( HasNodeError err ...@@ -97,7 +97,7 @@ buildNgramsOthersList ::( HasNodeError err
buildNgramsOthersList user uCid _groupParams (nt, MapListSize mapListSize) = do buildNgramsOthersList user uCid _groupParams (nt, MapListSize mapListSize) = do
allTerms :: HashMap NgramsTerm (Set NodeId) <- getNodesByNgramsUser uCid nt allTerms :: HashMap NgramsTerm (Set NodeId) <- getNodesByNgramsUser uCid nt
-- | PrivateFirst for first developments since Public NodeMode is not implemented yet -- PrivateFirst for first developments since Public NodeMode is not implemented yet
socialLists :: FlowCont NgramsTerm FlowListScores socialLists :: FlowCont NgramsTerm FlowListScores
<- flowSocialList MySelfFirst user nt ( FlowCont HashMap.empty <- flowSocialList MySelfFirst user nt ( FlowCont HashMap.empty
$ HashMap.fromList $ HashMap.fromList
...@@ -152,11 +152,11 @@ buildNgramsTermsList :: ( HasNodeError err ...@@ -152,11 +152,11 @@ buildNgramsTermsList :: ( HasNodeError err
-> m (Map NgramsType [NgramsElement]) -> m (Map NgramsType [NgramsElement])
buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do
-- | Filter 0 With Double -- Filter 0 With Double
-- Computing global speGen score -- Computing global speGen score
allTerms :: HashMap NgramsTerm Double <- getTficf uCid mCid nt allTerms :: HashMap NgramsTerm Double <- getTficf uCid mCid nt
-- | PrivateFirst for first developments since Public NodeMode is not implemented yet -- PrivateFirst for first developments since Public NodeMode is not implemented yet
socialLists :: FlowCont NgramsTerm FlowListScores socialLists :: FlowCont NgramsTerm FlowListScores
<- flowSocialList MySelfFirst user nt ( FlowCont HashMap.empty <- flowSocialList MySelfFirst user nt ( FlowCont HashMap.empty
$ HashMap.fromList $ HashMap.fromList
...@@ -215,7 +215,7 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do ...@@ -215,7 +215,7 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do
printDebug "groupedTreeScores_SetNodeId" groupedTreeScores_SetNodeId printDebug "groupedTreeScores_SetNodeId" groupedTreeScores_SetNodeId
-- | Coocurrences computation -- Coocurrences computation
--, t1 >= t2 -- permute byAxis diag -- since matrix symmetric --, t1 >= t2 -- permute byAxis diag -- since matrix symmetric
let mapCooc = HashMap.filter (>1) -- removing cooc of 1 let mapCooc = HashMap.filter (>1) -- removing cooc of 1
$ HashMap.fromList [ ((t1, t2), Set.size $ Set.intersection s1 s2) $ HashMap.fromList [ ((t1, t2), Set.size $ Set.intersection s1 s2)
...@@ -301,7 +301,7 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do ...@@ -301,7 +301,7 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do
-- TODO count it too -- TODO count it too
cands' = setListType (Just CandidateTerm) cands' = setListType (Just CandidateTerm)
{-$ groupedMonoTail {-\$ groupedMonoTail
<>-} groupedMultTail <>-} groupedMultTail
result = Map.unionsWith (<>) result = Map.unionsWith (<>)
......
...@@ -78,8 +78,8 @@ groupWith (GroupParams l _m _n _) t = ...@@ -78,8 +78,8 @@ groupWith (GroupParams l _m _n _) t =
$ map (stem l) $ map (stem l)
-- . take n -- . take n
$ List.sort $ List.sort
-- $ Set.toList -- \$ Set.toList
-- $ Set.fromList -- \$ Set.fromList
-- . (List.filter (\t -> Text.length t > m)) -- . (List.filter (\t -> Text.length t > m))
$ Text.splitOn " " $ Text.splitOn " "
$ Text.replace "-" " " $ Text.replace "-" " "
......
...@@ -69,10 +69,10 @@ Children are not modified in this specific case. ...@@ -69,10 +69,10 @@ Children are not modified in this specific case.
-- New list get +1 score -- New list get +1 score
-- Hence others lists lay around 0 score -- Hence others lists lay around 0 score
addScorePatch fl (t, (NgramsPatch children' (Patch.Replace old_list new_list))) = addScorePatch fl (t, (NgramsPatch children' (Patch.Replace old_list new_list))) =
-- | Adding New Children score -- Adding new 'Children' score
addScorePatch fl' (t, NgramsPatch children' Patch.Keep) addScorePatch fl' (t, NgramsPatch children' Patch.Keep)
where where
-- | Adding New ListType score -- | Adding new 'ListType' score
fl' = fl & flc_scores . at t %~ (score fls_listType old_list (-1)) fl' = fl & flc_scores . at t %~ (score fls_listType old_list (-1))
& flc_scores . at t %~ (score fls_listType new_list ( 1)) & flc_scores . at t %~ (score fls_listType new_list ( 1))
& flc_cont %~ (HashMap.delete t) & flc_cont %~ (HashMap.delete t)
......
...@@ -670,7 +670,7 @@ toPhyloExport phylo = exportToDot phylo ...@@ -670,7 +670,7 @@ toPhyloExport phylo = exportToDot phylo
$ processDynamics $ processDynamics
$ getGroupsFromLevel (phyloLevel $ getConfig phylo) $ getGroupsFromLevel (phyloLevel $ getConfig phylo)
$ tracePhyloInfo phylo $ tracePhyloInfo phylo
-- $ toHorizon phylo -- \$ toHorizon phylo
traceExportBranches :: [PhyloBranch] -> [PhyloBranch] traceExportBranches :: [PhyloBranch] -> [PhyloBranch]
......
...@@ -256,7 +256,7 @@ toTree m = ...@@ -256,7 +256,7 @@ toTree m =
-> Tree NodeTree -> Tree NodeTree
toTree' m' root = toTree' m' root =
TreeN (toNodeTree root) $ TreeN (toNodeTree root) $
-- | Lines below are equivalent computationally but not semantically -- Lines below are equivalent computationally but not semantically
-- m' ^.. at (Just $ _dt_nodeId root) . _Just . each . to (toTree' m') -- m' ^.. at (Just $ _dt_nodeId root) . _Just . each . to (toTree' m')
toListOf (at (Just $ _dt_nodeId root) . _Just . each . to (toTree' m')) m' toListOf (at (Just $ _dt_nodeId root) . _Just . each . to (toTree' m')) m'
......
...@@ -17,20 +17,20 @@ module Gargantext.Prelude.Crypto.Pass.User ...@@ -17,20 +17,20 @@ module Gargantext.Prelude.Crypto.Pass.User
where where
-- | 1) Quick password generator imports -- 1) Quick password generator imports
import Data.Text (Text) import Data.Text (Text)
import Data.String (String) import Data.String (String)
import Control.Monad import Control.Monad
import Control.Monad.Random import Control.Monad.Random
import qualified Data.List as List import qualified Data.List as List
-- | 2) Easy password manager imports -- 2) Easy password manager imports
import Gargantext.Prelude import Gargantext.Prelude
import Gargantext.Prelude.Utils (shuffle) import Gargantext.Prelude.Utils (shuffle)
-- | 1) Quick password generator -- 1) Quick password generator
-- | Inspired by Rosetta code -- Inspired by Rosetta code
-- https://www.rosettacode.org/wiki/Password_generator#Haskell -- https://www.rosettacode.org/wiki/Password_generator#Haskell
gargPass :: MonadRandom m => m Text gargPass :: MonadRandom m => m Text
gargPass = cs <$> gargPass' chars 33 gargPass = cs <$> gargPass' chars 33
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment