Haskell implementations of Hidden Markov Models & related algorithms from AIMA book
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

changing project name and adding flag for nix to use Hoogle documentation

+24 -11
+2 -1
.gitignore
··· 17 17 cabal.sandbox.config 18 18 .stack-work/ 19 19 codex.tags 20 - .ghc.environment.* 20 + .ghc.environment.* 21 + result
+12 -2
default.nix
··· 1 - { nixpkgs ? import <nixpkgs> {}, compiler ? "default" }: 1 + { nixpkgs ? import <nixpkgs> {}, compiler ? "default", withHoogle ? false }: 2 2 let 3 3 inherit (nixpkgs) pkgs; 4 4 haskellPackages = if compiler == "default" 5 5 then pkgs.haskellPackages 6 6 else pkgs.haskell.packages.${compiler}; 7 + 8 + hPkgs = if withHoogle 9 + then 10 + haskellPackages // rec { 11 + ghc = haskellPackages.ghc // { withPackages = haskellPackages.ghc.withHoogle; }; 12 + ghcWithPackages = ghc.withPackages; 13 + } 14 + else 15 + haskellPackages; 16 + 7 17 in 8 - haskellPackages.callPackage ./hmm.nix {} 18 + hPkgs.callPackage ./hmm.nix {}
+4 -2
hmm-haskell.cabal hmm.cabal
··· 1 1 cabal-version: 2.4 2 - -- Initial package description 'hmm-haskell.cabal' generated by 'cabal 2 + -- Initial package description 'hmm.cabal' generated by 'cabal 3 3 -- init'. For further documentation, see 4 4 -- http://haskell.org/cabal/users-guide/ 5 5 6 - name: hmm-haskell 6 + name: hmm 7 7 version: 0.1.0.0 8 8 -- synopsis: 9 9 -- description: ··· 18 18 19 19 library 20 20 exposed-modules: HMM 21 + CHMM 21 22 -- other-modules: 22 23 -- other-extensions: 23 24 build-depends: base ^>=4.12.0.0 && < 4.13 ··· 27 28 , mtl >= 2.2.2 && < 2.3 28 29 , transformers >= 0.5.6 && < 0.6 29 30 , hmatrix >= 0.19.0 && < 0.20 31 + , combinatorial 30 32 hs-source-dirs: src 31 33 default-language: Haskell2010 32 34 default-extensions: NoImplicitPrelude
+4 -4
hmm.nix
··· 1 - { mkDerivation, base, hmatrix, linear, mtl, papa, stdenv 2 - , transformers, vector 1 + { mkDerivation, base, combinatorial, hmatrix, linear, mtl, papa 2 + , stdenv, transformers, vector 3 3 }: 4 4 mkDerivation { 5 - pname = "hmm-haskell"; 5 + pname = "hmm"; 6 6 version = "0.1.0.0"; 7 7 src = ./.; 8 8 libraryHaskellDepends = [ 9 - base hmatrix linear mtl papa transformers vector 9 + base combinatorial hmatrix linear mtl papa transformers vector 10 10 ]; 11 11 license = stdenv.lib.licenses.asl20; 12 12 }
+2 -2
shell.nix
··· 1 - { nixpkgs ? import <nixpkgs> {}, compiler ? "default"}: 1 + { nixpkgs ? import <nixpkgs> {}, compiler ? "default", withHoogle ? false}: 2 2 let 3 3 inherit (nixpkgs) pkgs; 4 - drv = import ./default.nix { inherit nixpkgs compiler; }; 4 + drv = import ./default.nix { inherit nixpkgs compiler withHoogle; }; 5 5 drvWithTools = pkgs.haskell.lib.addBuildDepends drv [ pkgs.cabal-install ]; 6 6 in 7 7 if pkgs.lib.inNixShell then drvWithTools.env else drvWithTools