-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 1.0 #60
Comments
Before that I need to change the version from 0.9 to 1.0. I wait your ACK before doing this in the release-1.0 branch. |
ACK! |
Commit 6113914 changes the cabal file, now hawk is tagged version 1.0 (btw we should add an option to see the hawk version, like -v/--vesion). Tomorrow I will update it to hackage. Before it can I merge develop (specifically the commit 35945b2) into release-1.0 so that we can fix the testing problem? It's just one line different and avoid the all time error with tests. |
sure! |
actually, I think adding --version is important enough to do it for 1.0 edit: done. |
Since we're about to upload to hackage, I guess the following is meant specifically for us: http://fuuzetsu.co.uk/blog/posts/2014-01-06-Fix-your-Hackage-documentation.html |
Ok, I will try now if the doc builds correctly with |
Found some problems on the documentation, I'm fixing them. Edit: the output is
We should document our library (IO,Runtime and Representable) before submitting the package. I'm doing Representable and maybe this evening I take care of Runtime. |
By the way I don't know how to fix the |
I think it's because we don't have a local copy of the source for those
|
When I finish commenting Representable I test the package on hackage and report the result here before confirming. |
Hawk has passed hackage tests and it is available as candidate here. When you give me the ok I publish it and it will become available in the main hackage repository (and cabal). |
There is no documentation for the modules we expose? |
There is documentation...I don't know why hackage is not getting it. But if I do cabal haddock I have the documentation at least for Representable (the only real module that we export, the others are for runtime and IO). Uhmm I try to solve this and reload the package. |
Maybe the problem is that the "Publish Candidate" feature is not yet fully implemented. |
Indeed, I see they do have an issue with candidates and documentation... haskell/hackage-server#70
|
My Haddock version is 2.13.2.1, installed using cabal |
Maybe try standalone-haddock? I have no idea what that is, I am just parroting what I read on reddit's fix_your_hackage_documentation thread. That comment says we need to manually upload our documentation? I thought hackage would compile it for us on the server side. Maybe not! |
I'm asking on the IRC channel :-). I hate manual operations. |
So we will have to upload our documentation manually after all? |
I'm trying the given script. This is stupid. |
Yeah, it is suboptimal, but I guess it will have to do for now. If doing it manually makes you upset, I could try doing it myself if you want. |
And the stupidest part is that github has automatically added and entry to the hackage-server issue pointing to this because I referenced the issue. And it is permanent. |
I'm running the script right now. It is compiling Hawk in a separate directory, so it will take a while. But the script already found the candidate version of hawk on hackage, so I think it is working. By the way do you have an account on hackage? I would like to add you to the mantainers of the package so we can work together on it. |
I'll create one. |
There you go: http://hackage.haskell.org/user/gelisam |
Done, let me know if it works |
In the meanwhile, the script that I linked seems unable to build hawk with an error on hint... |
Yup, I can now access http://hackage.haskell.org/package/haskell-awk-1.0/candidate/maintain ! |
Done. I loaded the doc manually using the link that you provided before. |
Hmm, maybe we could add a module-level comment to System.Console.Hawk.IO and System.Console.Hawk.Runtime explaining that those modules are required by Hawk at runtime, but aren't met for public consumption and may change at any time? |
Yes
|
I pushed such a message to |
Hold on, Representable is not exporting |
Yet it was working even thought we were not exporting them? Is this supposed to be a public, supported API or just something used by Hawk's runtime which can change at any time? Because that's what I wrote at the top, for all three packages. |
Ok fixed, now Representable exports correctly the API. I also pushed into The four classes > echo 'data Person = Person { name :: String, age :: Integer } deriving (Show)' >> ~/.hawk/prelude.hs
> echo 'instance Rows Person where repr d (Person n a) = repr d $ "name:" ++ n ++ "|age:" ++ show a' >> ~/.hawk/prelude.hs
> hawk 'Person "Mario Pastorelli" 27'
name:Mario Pastorelli|age:27 I will add a tutorial on how to add new datatypes such that Hawk can show them in the command line in a proper format (different from But that's not very useful for now, let's talk about this version 1.0. I'm ready to publish it. |
Ah! In that case, they are a public API which we should keep stable in order not to break user's preludes. Fine for me. I think the package is ready to be uploaded to hackage, but before announcing it to reddit we should make one final modification to the README: we should say that they can install via cabal now :) |
And adding you as maintainer into haskell-awk.cabal. I'm doing this, if you want to fix README.md by adding how to install (the stable) from cabal go on. |
done. I have also re-added the description to the Representable package, this time explaining that users can use it in their prelude instead of saying that the API can change at any time. |
Pulled, I'm uploading the package and the documentation....I let you know when it is ready. |
Uploaded (I fixed a typo in Representable description). |
Looking good, let's publish this! |
Done! Now I don't have time to merge |
There is a problem with the package. I purged all the hawk versions from my cabal lib and when I do cabal install haskell-awk I get:
many libs are missing, in fact Extra-Source-File of haskell-awk.cabal has not been updated with the subdirectories of src/System/Console/Hawk. I'm fixing it right now. |
I have fixed the cabal file...but now we need to upload the correct version. I tag it |
For now I set deprecated the |
Very strange!
|
Done, the package can be found here. I don't know what's going on hackage but when I published hsprocess hackage alerted me about all the possible problems. Now it even accept packages that don't compile, wow. |
Ok I have merged |
If we are ready I'm going to push the release-1.0 version to hackage right now. The package submitted is created by cabal sdist.
After this we can annunce it on reddit, then merge release-1.0 into master as if it is a feature and then close this issue. What do you think?
The text was updated successfully, but these errors were encountered: