Guest User

Untitled

a guest
Apr 16th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defalias html-label (t/HVec [Keyword (t/HMap :mandatory {:for String}) String]))
  2. (defalias html-form (t/HVec [Keyword (t/HMap :mandatory {:id String}) t/Any *]))
  3. (defalias html-form-group (t/HVec [html-label html-form]))
  4.  
  5. (t/ann dt->hiccup [(HVec [Keyword (U Keyword (HVec [Keyword Number])) t/Any t/Any *]) ->
  6.   html-form-group])
  7. (defmulti dt->hiccup (t/fn [col :- pt/et-column]
  8.                        (if (vector? (second col))
  9.                          (first (second col))
  10.                          (second col))))
  11.  
  12.  
  13. Type Error (leiningen/td_to_hiccup.clj:25:34) Polymorphic function first could not be applied to arguments:
  14. Polymorphic Variables:
  15.     x
  16.  
  17. Domains:
  18.     (t/HSequential [x t/Any *])
  19.     (t/Option (t/EmptySeqable x))
  20.     (t/NonEmptySeqable x)
  21.     (t/Option (clojure.lang.Seqable x))
  22.  
  23. Arguments:
  24.     (t/U Keyword (t/HVec [clojure.lang.Keyword java.lang.Number]))
  25.  
  26. Ranges:
  27.     x :object {:path [(Nth 0)], :id 0}
  28.     nil
  29.     x
  30.     (t/Option x)
  31.  
  32. in: (first (second col))
  33. in: (first (second col))
  34.  
  35.  
  36. ExceptionInfo Type Checker: Found 1 error  clojure.core/ex-info (core.clj:4403)
Advertisement
Add Comment
Please, Sign In to add comment