Haddock version 2.4.2 - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    haddock  most recent diff


    version 2.4.2

      View the most recent changes for the haddock port at: haddock.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for haddock.
      The raw portfile for haddock 2.4.2 is located here:
      http://haddock.darwinports.com/dports/devel/haddock/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/haddock


      The haddock Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: haddock
      Version: 2.4.2
      Category: devel
      Maintainers: nomaintainer
      Platform: darwin
      Description: A Haskell Documentation Tool
      Long Description: This is Haddock, a tool for automatically generating documentation from annotated Haskell source code. It is primarily intended for documenting libraries, but it should be useful for any kind of Haskell code. Like other systems (IDoc,HDoc), Haddock lets you write documentation annotations next to the definitions of functions and types in the source code, in a syntax that is easy on the eye when writing the source code (no heavyweight mark-up). The documentation generated by Haddock is fully hyperlinked - click on a type name in a type signature to go straight to the definition, and documentation, for that type.

      Homepage: http://www.haskell.org/haddock/
      Master Sites: http://hackage.haskell.org/packages/archive/${name}/${version}

      Checksums: md5 c1d5238faac72727921130eb792041a2 sha1 cd1de409029bcabdf79b05b4c00c7702c836c765 rmd160 18317b3ffd60f2b0925d635ce1ea2ab35825860c


      depends_build port:ghc
      depends_lib port:hs-ghc-paths

      pre-configure { system "cd ${worksrcpath} && ${prefix}/bin/ghc -o Setup Setup.lhs -package Cabal"
      }

      configure { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
      }

      build { system "cd ${worksrcpath} && ./Setup build -v"
      }

      destroot { system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}"
      }

      livecheck.type regex
      livecheck.regex {version ([0-9.]+) released}

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/haddock
      % sudo port install haddock
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching haddock
      ---> Verifying checksum for haddock
      ---> Extracting haddock
      ---> Configuring haddock
      ---> Building haddock with target all
      ---> Staging haddock into destroot
      ---> Installing haddock
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using haddock with these commands:
      %  man haddock
      % apropos haddock
      % which haddock
      % locate haddock

     Where to find more information:

    Darwin Ports



    Lightbox this page.